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

Method ForceTransform

ogsr_engine/xrGame/CustomMonster.cpp:1079–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079void CCustomMonster::ForceTransform(const Fmatrix& m)
1080{
1081 if (!g_Alive())
1082 return;
1083 XFORM().set(m);
1084
1085 if (character_physics_support()->movement()->CharacterExist())
1086 character_physics_support()->movement()->EnableCharacter();
1087
1088 character_physics_support()->set_movement_position(m.c);
1089 character_physics_support()->movement()->SetVelocity(0, 0, 0);
1090}

Callers

nothing calls this directly

Calls 9

g_AliveFunction · 0.85
XFORMFunction · 0.85
CharacterExistMethod · 0.80
movementMethod · 0.80
EnableCharacterMethod · 0.80
set_movement_positionMethod · 0.80
setMethod · 0.45
SetVelocityMethod · 0.45

Tested by

no test coverage detected