PhysicsBody

Inherits: CollisionObject < Spatial < Node < Object

Inherited By: KinematicBody, PhysicalBone, RigidBody, StaticBody

Base class for all objects affected by physics in 3D space.

Description

PhysicsBody is an abstract base class for implementing a physics body. All *Body types inherit from it.

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

Tutorials

Methods

void

add_collision_exception_with ( Node body )

Array

get_collision_exceptions ( )

void

remove_collision_exception_with ( Node body )


Method Descriptions

void add_collision_exception_with ( Node body )

Adds a body to the list of bodies that this body can't collide with.


Array get_collision_exceptions ( )

Returns an array of nodes that were added as collision exceptions for this body.


void remove_collision_exception_with ( Node body )

Removes a body from the list of bodies that this body can't collide with.