Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom function to update object's property in order #67

Open
chillray opened this issue Jun 12, 2024 · 0 comments
Open

Use custom function to update object's property in order #67

chillray opened this issue Jun 12, 2024 · 0 comments

Comments

@chillray
Copy link
Contributor

Describe the bug:
In the domain of floor tile naming, the tile names are in reverse order. Specifically, tile_0-1 represents the coordinate (1,0) in grid coordinates rather than (0,1). While this should not be an issue due to:
(assign (?from y x) (function distribute_grid_around_point (objects ?from)))
which should place the tile in the correct position, changing the order of properties does not take effect. The properties are still updated as:
(assign (?from x y) (function distribute_grid_around_point (objects ?from)))

Expected Behavior:
Given (assign (?from y x) (function distribute_grid_around_point (objects ?from)))
The second digit should represent the object's x position, and the first digit should represent the y position.

Observed Behavior:
The custom function parses the first digit as the x position and the second digit as the y position, regardless of the provided order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant