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

Function GetOrientToPoint

TombEngine/Math/Geometry.cpp:268–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 EulerAngles GetOrientToPoint(const Vector3& origin, const Vector3& target)
269 {
270 if (origin == target)
271 return EulerAngles::Identity;
272
273 return EulerAngles(target - origin);
274 }
275
276 EulerAngles GetRelOrientToNormal(short orient, const Vector3& normal, const Vector3& gravity)
277 {

Callers 15

GetVehicleMountTypeFunction · 0.85
TriggerKnockbackFunction · 0.85
UpdateFishSwarmFunction · 0.85
TribesmanShotDartFunction · 0.85
DoCurrentFunction · 0.85
KayakDoCurrentFunction · 0.85
MoveCartFunction · 0.85
ControlDamoclesSwordFunction · 0.85
CollideDamoclesSwordFunction · 0.85

Calls 1

EulerAnglesClass · 0.70

Tested by

no test coverage detected