Resolved issues with script PhysicsDirectBodyState3d contacts
Resolved a problem with PhysicsDirectBodyState3D sometimes returning incorrect contact positions and added a new get_contact_local_velocity_at_position method to compliment the existing one for the collider.
This commit is contained in:
@@ -179,6 +179,13 @@
|
||||
Returns the local shape index of the collision.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_contact_local_velocity_at_position" qualifiers="const">
|
||||
<return type="Vector3" />
|
||||
<param index="0" name="contact_idx" type="int" />
|
||||
<description>
|
||||
Returns the linear velocity vector at the body's contact point.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_space_state">
|
||||
<return type="PhysicsDirectSpaceState3D" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user