![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <RigidBodyComponent.h>
Public Member Functions | |
RigidBodyComponent (SceneGraphNode *parentSGN, PlatformContext &context) | |
~RigidBodyComponent () override | |
void | physicsCollisionGroup (PhysicsGroup group) |
void | onCollision (const RigidBodyComponent &collider) |
void | onCollisionCbk (const DELEGATE< void, const RigidBodyComponent & > &cbk) |
PROPERTY_R (PhysicsGroup, physicsCollisionGroup, PhysicsGroup::GROUP_COUNT) | |
PROPERTY_R (bool, isKinematic, false) | |
Private Types | |
using | Parent = BaseComponentType< RigidBodyComponent, ComponentType::RIGID_BODY > |
Private Member Functions | |
bool | filterCollision (const RigidBodyComponent &collider) |
Private Attributes | |
PhysicsAsset_uptr | _rigidBody |
DELEGATE< void, const RigidBodyComponent & > | _collisionCbk |
Friends | |
class | RigidBodySystem |
Definition at line 51 of file RigidBodyComponent.h.
|
private |
Definition at line 51 of file RigidBodyComponent.h.
Divide::RigidBodyComponent::RigidBodyComponent | ( | SceneGraphNode * | parentSGN, |
PlatformContext & | context | ||
) |
Definition at line 10 of file RigidBodyComponent.cpp.
|
override |
Definition at line 16 of file RigidBodyComponent.cpp.
|
private |
Definition at line 29 of file RigidBodyComponent.cpp.
void Divide::RigidBodyComponent::onCollision | ( | const RigidBodyComponent & | collider | ) |
Definition at line 34 of file RigidBodyComponent.cpp.
|
inline |
Definition at line 60 of file RigidBodyComponent.h.
void Divide::RigidBodyComponent::physicsCollisionGroup | ( | PhysicsGroup | group | ) |
Definition at line 20 of file RigidBodyComponent.cpp.
Divide::RigidBodyComponent::PROPERTY_R | ( | bool | , |
isKinematic | , | ||
false | |||
) |
Divide::RigidBodyComponent::PROPERTY_R | ( | PhysicsGroup | , |
physicsCollisionGroup | , | ||
PhysicsGroup::GROUP_COUNT | |||
) |
|
friend |
Definition at line 51 of file RigidBodyComponent.h.
|
private |
Definition at line 70 of file RigidBodyComponent.h.
|
private |
Definition at line 69 of file RigidBodyComponent.h.