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

Method ActivateBox

ogsr_engine/xrGame/PHMovementControl.cpp:1061–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061void CPHMovementControl::ActivateBox(DWORD id, BOOL Check /*false*/)
1062{
1063 if (Check && (m_dwCurBox == id))
1064 return;
1065 m_dwCurBox = id;
1066 aabb.set(boxes[id]);
1067 if (!m_character || !m_character->b_exist)
1068 return;
1069 dVector3 size = {aabb.x2 - aabb.x1, aabb.y2 - aabb.y1, aabb.z2 - aabb.z1};
1070 m_character->SetBox(size);
1071 // Fvector v;
1072 // m_character->GetVelocity(v);
1073 // m_character->Destroy();
1074 // CreateCharacter();
1075 // m_character->SetVelocity(v);
1076 // m_character->SetPosition(vPosition);
1077}
1078void CPHMovementControl::InterpolateBox(DWORD id, float k)
1079{
1080 if (m_dwCurBox == id)

Callers 1

net_SpawnMethod · 0.80

Calls 2

setMethod · 0.45
SetBoxMethod · 0.45

Tested by

no test coverage detected