MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SetBoneRotationFlags

Method SetBoneRotationFlags

TombEngine/Game/Setup.cpp:122–132  ·  view source on GitHub ↗

NOTE: JointRotationFlags allows bones to be rotated with CreatureJoint().

Source from the content-addressed store, hash-verified

120
121// NOTE: JointRotationFlags allows bones to be rotated with CreatureJoint().
122void ObjectInfo::SetBoneRotationFlags(int boneID, int flags)
123{
124 int index = boneIndex + (boneID * 4);
125 if (index < 0 || index >= g_Level.Bones.size())
126 {
127 TENLog(fmt::format("Failed to set rotation flag for bone ID {}.", boneID), LogLevel::Warning);
128 return;
129 }
130
131 g_Level.Bones[index] |= flags;
132}
133
134void ObjectInfo::SetHitEffect(HitEffect hitEffect)
135{

Callers 6

StartEntityFunction · 0.80
StartEntityFunction · 0.80
StartEntityFunction · 0.80
StartEntityFunction · 0.80
StartEntityFunction · 0.80
StartObjectFunction · 0.80

Calls 3

TENLogFunction · 0.85
formatFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected