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

Function ApplyVelocityToRope

TombEngine/Objects/Generic/Object/rope.cpp:440–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438 }
439
440 void ApplyVelocityToRope(int node, short angle, short n)
441 {
442 SetPendulumVelocity(n * phd_sin(angle) * 4096, 0, n * phd_cos(angle) * 4096);
443 }
444
445 void SetPendulumVelocity(int x, int y, int z)
446 {

Callers 2

RopeCollisionFunction · 0.85
lara_col_rope_swingFunction · 0.85

Calls 3

SetPendulumVelocityFunction · 0.85
phd_sinFunction · 0.85
phd_cosFunction · 0.85

Tested by

no test coverage detected