Module physics_2d_direct_space_state

Consts

TYPE_MASK_STATIC_BODY* = 1'i64
TYPE_MASK_KINEMATIC_BODY* = 2'i64
TYPE_MASK_RIGID_BODY* = 4'i64
TYPE_MASK_CHARACTER_BODY* = 8'i64
TYPE_MASK_AREA* = 16'i64
TYPE_MASK_COLLISION* = 15'i64

Procs

proc intersectPoint*(self: Physics2DDirectSpaceState; point: Vector2;
                    maxResults: int64 = 32'i64; exclude: Array;
                    collisionLayer: int64 = 2147483647'i64; typeMask: int64 = 15'i64): Array {.
gcsafe, locks: 0
.}
proc intersectRay*(self: Physics2DDirectSpaceState; fromm: Vector2; to: Vector2;
                  exclude: Array; collisionLayer: int64 = 2147483647'i64;
                  typeMask: int64 = 15'i64): Dictionary {.
gcsafe, locks: 0
.}
proc intersectShape*(self: Physics2DDirectSpaceState;
                    shape: Physics2DShapeQueryParameters;
                    maxResults: int64 = 32'i64): Array {.
gcsafe, locks: 0
.}
proc castMotion*(self: Physics2DDirectSpaceState;
                shape: Physics2DShapeQueryParameters): Array {.
gcsafe, locks: 0
.}
proc collideShape*(self: Physics2DDirectSpaceState;
                  shape: Physics2DShapeQueryParameters; maxResults: int64 = 32'i64): Array {.
gcsafe, locks: 0
.}
proc getRestInfo*(self: Physics2DDirectSpaceState;
                 shape: Physics2DShapeQueryParameters): Dictionary {.
gcsafe, locks: 0
.}