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 )
int get_collision_mask ( ) const
bool get_collision_mask_bit ( int bit ) const
int get_layer_mask ( ) const
bool get_layer_mask_bit ( int bit ) const
void remove_collision_exception_with ( PhysicsBody body )
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
  • bool get_collision_mask_bit ( int bit ) const
  • int get_layer_mask ( ) const
  • bool get_layer_mask_bit ( int bit ) const
  • void remove_collision_exception_with ( PhysicsBody body )
  • 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 )