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 PhysicsTestMotionResult3D
Describes the motion and collision result from PhysicsServer3D.body_test_motion.

Describes the motion and collision result from PhysicsServer3D.body_test_motion.

Object get_collider<>( int collision_index=0, collision_index:int=0, ):Object

Returns the colliding body's attached Object given a collision index (the deepest collision by default), if a collision occurred.

int get_collider_id<>( int collision_index=0, collision_index:int=0, ):int

Returns the unique instance ID of the colliding body's attached Object given a collision index (the deepest collision by default), if a collision occurred. See Object.get_instance_id.

RID get_collider_rid<>( int collision_index=0, collision_index:int=0, ):RID

Returns the colliding body's RID used by the PhysicsServer3D given a collision index (the deepest collision by default), if a collision occurred.

int get_collider_shape<>( int collision_index=0, collision_index:int=0, ):int

Returns the colliding body's shape index given a collision index (the deepest collision by default), if a collision occurred. See CollisionObject3D.

Vector3 get_collider_velocity<>( int collision_index=0, collision_index:int=0, ):Vector3

Returns the colliding body's velocity given a collision index (the deepest collision by default), if a collision occurred.

int get_collision_count<>():int

Returns the number of detected collisions.

float get_collision_depth<>( int collision_index=0, collision_index:int=0, ):float

Returns the length of overlap along the collision normal given a collision index (the deepest collision by default), if a collision occurred.

int get_collision_local_shape<>( int collision_index=0, collision_index:int=0, ):int

Returns the moving object's colliding shape given a collision index (the deepest collision by default), if a collision occurred.

Vector3 get_collision_normal<>( int collision_index=0, collision_index:int=0, ):Vector3

Returns the colliding body's shape's normal at the point of collision given a collision index (the deepest collision by default), if a collision occurred.

Vector3 get_collision_point<>( int collision_index=0, collision_index:int=0, ):Vector3

Returns the point of collision in global coordinates given a collision index (the deepest collision by default), 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.

Vector3 get_remainder<>():Vector3

Returns the moving object's remaining movement vector.

Vector3 get_travel<>():Vector3

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...