Add collision weight to PhysicsBody for penetrations must be avoided
Co-authored-by: Juan Linietsky <reduzio@gmail.com>
This commit is contained in:
parent
dbd1524362
commit
b31115cdc1
30 changed files with 213 additions and 2 deletions
|
|
@ -338,6 +338,13 @@
|
|||
Returns the physics layer or layers a body can collide with.
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_get_collision_priority" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="body" type="RID" />
|
||||
<description>
|
||||
Returns the body's collision priority.
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_get_constant_force" qualifiers="const">
|
||||
<return type="Vector3" />
|
||||
<param index="0" name="body" type="RID" />
|
||||
|
|
@ -505,6 +512,14 @@
|
|||
Sets the physics layer or layers a body can collide with.
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_set_collision_priority">
|
||||
<return type="void" />
|
||||
<param index="0" name="body" type="RID" />
|
||||
<param index="1" name="priority" type="float" />
|
||||
<description>
|
||||
Sets the body's collision priority.
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_set_constant_force">
|
||||
<return type="void" />
|
||||
<param index="0" name="body" type="RID" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue