MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / lookAt

Method lookAt

Source/Falcor/Scene/Transform.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void Transform::lookAt(const float3& position, const float3& target, const float3& up)
74 {
75 mTranslation = position;
76 float3 dir = normalize(target - position);
77 mRotation = math::quatFromLookAt(dir, up, math::Handedness::RightHanded);
78 }
79
80 const float4x4& Transform::getMatrix() const
81 {

Callers 1

FALCOR_SCRIPT_BINDINGFunction · 0.80

Calls 2

quatFromLookAtFunction · 0.85
normalizeFunction · 0.50

Tested by

no test coverage detected