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

Method AddHook

src/PhysicsCollider.cpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11void BoxCollider::AddHook(const WeakRef<Entity>& e) {
12 auto body = e.get()->Components().GetComponentOfSubclass<PhysicsBodyComponent>();
13 //add the physics body to the Entity's physics actor
14 collider = PxRigidActorExt::createExclusiveShape(*(body->rigidActor), PxBoxGeometry(extent.x, extent.y, extent.z), *material->getPhysXmat());
15}
16
17
18void RavEngine::PhysicsCollider::SetType(CollisionType type)

Callers

nothing calls this directly

Calls 3

getPhysXmatMethod · 0.80
PxBoxGeometryClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected