PhysicsBody¶
Inherits: CollisionObject < Spatial < Node < Object
Inherited By: VehicleBody, KinematicBody, StaticBody, RigidBody
Category: Core
Brief Description¶
Base class for different types of Physics bodies.
Member Functions¶
void |
add_collision_exception_with ( PhysicsBody body ) |
get_collision_mask ( ) const |
|
get_collision_mask_bit ( int bit ) const |
|
get_layer_mask ( ) const |
|
get_layer_mask_bit ( int bit ) const |
|
void |
|
void |
set_collision_mask ( int mask ) |
void |
set_collision_mask_bit ( int bit, bool value ) |
void |
set_layer_mask ( int mask ) |
void |
set_layer_mask_bit ( int bit, bool value ) |
Description¶
PhysicsBody is an abstract base class for implementing a physics body. All PhysicsBody types inherit from it.
Member Function Description¶
void add_collision_exception_with ( PhysicsBody body )
int get_collision_mask ( ) const
int get_layer_mask ( ) const
void remove_collision_exception_with ( PhysicsBody body )
void set_collision_mask ( int mask )
void set_layer_mask ( int mask )