MCPcopy Create free account
hub / github.com/axmolengine/axmol / getDirection

Method getDirection

core/2d/Light.cpp:87–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 setRotationFromDirection(dir);
86}
87Vec3 DirectionLight::getDirection() const
88{
89 Mat4 mat = getNodeToParentTransform();
90 return Vec3(-mat.m[8], -mat.m[9], -mat.m[10]);
91}
92Vec3 DirectionLight::getDirectionInWorld() const
93{
94 Mat4 mat = getNodeToWorldTransform();

Callers 8

initMethod · 0.45
_updateContentSizeMethod · 0.45
__offsetFromIndexMethod · 0.45
__indexFromOffsetMethod · 0.45
_updateCellPositionsMethod · 0.45

Calls 1

Vec3Function · 0.50

Tested by 1

initMethod · 0.36