pandemonium_engine_minimal/doc/classes/PhysicsBody.xml

38 lines
1.4 KiB
XML
Raw Normal View History

2023-12-14 23:24:47 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PhysicsBody" inherits="CollisionObject" version="4.2">
<brief_description>
Base class for all objects affected by physics in 3D space.
</brief_description>
<description>
PhysicsBody is an abstract base class for implementing a physics body. All *Body types inherit from it.
[b]Warning:[/b] With a non-uniform scale this node will probably not function as expected. Please make sure to keep its scale uniform (i.e. the same on all axes), and change the size(s) of its collision shape(s) instead.
</description>
<tutorials>
<link>$DOCS_URL/tutorials/physics/physics_introduction.md</link>
</tutorials>
<methods>
<method name="add_collision_exception_with">
<return type="void" />
<argument index="0" name="body" type="Node" />
<description>
Adds a body to the list of bodies that this body can't collide with.
</description>
</method>
<method name="get_collision_exceptions">
<return type="Array" />
<description>
Returns an array of nodes that were added as collision exceptions for this body.
</description>
</method>
<method name="remove_collision_exception_with">
<return type="void" />
<argument index="0" name="body" type="Node" />
<description>
Removes a body from the list of bodies that this body can't collide with.
</description>
</method>
</methods>
<constants>
</constants>
</class>