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:
parent
c3ed7af123
commit
fffc6aba58
10 changed files with 40 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue