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

Function ClampRotation

TombEngine/Game/Animation/Animation.cpp:502–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 }
501
502 void ClampRotation(Pose& outPose, short angle, short rot)
503 {
504 if (angle <= rot)
505 {
506 outPose.Orientation.y += (angle >= -rot) ? angle : -rot;
507 }
508 else
509 {
510 outPose.Orientation.y += rot;
511 }
512 }
513}

Callers 3

EnemyJeepControlFunction · 0.85
BaddyControlFunction · 0.85
VonCroyControlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected