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

Method CreateCharacter

ogsr_engine/xrGame/CharacterPhysicsSupport.cpp:220–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void CCharacterPhysicsSupport::CreateCharacter()
221{
222 // if( m_eType == etBitting )
223 // return;
224 if (m_PhysicMovementControl->CharacterExist())
225 return;
226 CollisionCorrectObjPos(m_EntityAlife.Position(), true);
227 m_PhysicMovementControl->CreateCharacter();
228 m_PhysicMovementControl->SetPhysicsRefObject(&m_EntityAlife);
229 m_PhysicMovementControl->SetPosition(m_EntityAlife.Position());
230}
231void CCharacterPhysicsSupport::SpawnInitPhysics(CSE_Abstract* e)
232{
233 // if(!m_physics_skeleton)CreateSkeleton(m_physics_skeleton);

Callers

nothing calls this directly

Calls 4

CharacterExistMethod · 0.80
PositionMethod · 0.80
SetPhysicsRefObjectMethod · 0.45
SetPositionMethod · 0.45

Tested by

no test coverage detected