MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / RigidBodyDynamicComponent

Method RigidBodyDynamicComponent

src/PhysicsBodyComponent.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14/// Dynamic Body ========================================
15
16RigidBodyDynamicComponent::RigidBodyDynamicComponent() {
17 rigidActor = PhysicsSolver::phys->createRigidDynamic(PxTransform(PxVec3(0, 0, 0))); //will be set pre-tick to the entity's location
18 RegisterAllAlternateTypes();
19}
20
21void RavEngine::PhysicsBodyComponent::AddHook(const WeakRef<RavEngine::Entity>& e)
22{

Callers

nothing calls this directly

Calls 3

PxTransformClass · 0.50
PxVec3Class · 0.50
createRigidDynamicMethod · 0.45

Tested by

no test coverage detected