XyzWorld module¶
This module offer classes designed to support a tri-dimensional environment.
SynergyObject¶
-
class
synergine_xyz.SynergyObject.
SynergyObject
(collection, context)[source]¶ This SynergyObject is designed to support a tri-dimensional environment.
-
get_position
()[source]¶ Return the actual position.
Returns: position with (z, x, y) signature Return type: tuple
-
get_previous_direction
()[source]¶ Return the previous direction of object
Returns: The previous direction Return type: int
-
Mechanisms¶
-
class
synergine_xyz.mechanism.AroundMechanism.
AroundMechanism
(events)[source]¶ Compute near object ids of concerned object.
Context¶
-
class
synergine_xyz.Context.
Context
[source]¶ Context override offering 2D and 3D metas data exploitation methods.
-
get_around_points_of
(point, distance=1, exclude_start_point=True)[source]¶ Return positions around a point.
Parameters: - point – (z, x, y) tuple
- distance – Distance to compute
Returns: list of (z, x, y) positions
Return type: list
-
get_around_points_of_point
(point, exclude_start_point=True)[source]¶ Return positions around a point with distance of 1.
Parameters: point – (z, x, y) tuple Returns: list of (z, x, y) positions Return type: list
-