MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / SetupDefaultRigidDynamic

Function SetupDefaultRigidDynamic

physx/samples/samplebase/PhysXSample.cpp:96–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94///////////////////////////////////////////////////////////////////////////////
95
96PX_FORCE_INLINE void SetupDefaultRigidDynamic(PxRigidDynamic& body, bool kinematic=false)
97{
98 body.setActorFlag(PxActorFlag::eVISUALIZATION, true);
99 body.setAngularDamping(0.5f);
100 body.setRigidBodyFlag(PxRigidBodyFlag::eKINEMATIC, kinematic);
101}
102
103void PhysXSample::unlink(RenderBaseActor* renderActor, PxShape* shape, PxRigidActor* actor)
104{

Callers 5

GenerateCompoundFunction · 0.85
createBoxMethod · 0.85
createSphereMethod · 0.85
createCapsuleMethod · 0.85
createConvexMethod · 0.85

Calls 3

setRigidBodyFlagMethod · 0.80
setActorFlagMethod · 0.45
setAngularDampingMethod · 0.45

Tested by

no test coverage detected