LuaSurface.find_non_colliding_position() and LuaSurface.can_place_entity() to support direction and orientation
Posted: Thu Jun 30, 2022 10:59 pm
At present there is no way to find a placement location for either a non north direction or a non 0 orientated entity.
Also you can't check buildability of a non 0 orientated entity.
My example is trying to teleport a player's car at its current orientation. However, I can see finding a placement for a non rotationally symmetrical entity could also be a challenge presently.
So ideally:
- LuaSurface.find_non_colliding_position() - would support direction and orientation being supplied.
- LuaSurface.can_place_entity() - would support orientation being supplied.
Also you can't check buildability of a non 0 orientated entity.
My example is trying to teleport a player's car at its current orientation. However, I can see finding a placement for a non rotationally symmetrical entity could also be a challenge presently.
So ideally:
- LuaSurface.find_non_colliding_position() - would support direction and orientation being supplied.
- LuaSurface.can_place_entity() - would support orientation being supplied.