class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCounted PhysicsTestMotionResult2D
Describes the motion and collision result from PhysicsServer2D.body_test_motion.

Describes the motion and collision result from PhysicsServer2D.body_test_motion.

Object get_collider<>():Object

Returns the colliding body's attached Object, if a collision occurred.

int get_collider_id<>():int

Returns the unique instance ID of the colliding body's attached Object, if a collision occurred. See Object.get_instance_id.

RID get_collider_rid<>():RID

Returns the colliding body's RID used by the PhysicsServer2D, if a collision occurred.

int get_collider_shape<>():int

Returns the colliding body's shape index, if a collision occurred. See CollisionObject2D.

Vector2 get_collider_velocity<>():Vector2

Returns the colliding body's velocity, if a collision occurred.

float get_collision_depth<>():float

Returns the length of overlap along the collision normal, if a collision occurred.

int get_collision_local_shape<>():int

Returns the moving object's colliding shape, if a collision occurred.

Vector2 get_collision_normal<>():Vector2

Returns the colliding body's shape's normal at the point of collision, if a collision occurred.

Vector2 get_collision_point<>():Vector2

Returns the point of collision in global coordinates, if a collision occurred.

float get_collision_safe_fraction<>():float

Returns the maximum fraction of the motion that can occur without a collision, between 0 and 1.

float get_collision_unsafe_fraction<>():float

Returns the minimum fraction of the motion needed to collide, if a collision occurred, between 0 and 1.

Vector2 get_remainder<>():Vector2

Returns the moving object's remaining movement vector.

Vector2 get_travel<>():Vector2

Returns the moving object's travel before collision.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...