MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetPhysicsRefObject

Method SetPhysicsRefObject

ogsr_engine/xrGame/PHSimpleCharacter.cpp:1134–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132}
1133
1134void CPHSimpleCharacter::SetPhysicsRefObject(CPhysicsShellHolder* ref_object)
1135{
1136 m_phys_ref_object = ref_object;
1137 if (b_exist)
1138 {
1139 dGeomUserDataSetPhysicsRefObject(m_geom_shell, ref_object);
1140 dGeomUserDataSetPhysicsRefObject(m_wheel, ref_object);
1141 dGeomUserDataSetPhysicsRefObject(m_hat, ref_object);
1142 dGeomUserDataSetPhysicsRefObject(m_cap, m_phys_ref_object);
1143 }
1144}
1145
1146void CPHSimpleCharacter::CaptureObject(dBodyID body, const dReal* anchor)
1147{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected