MCPcopy Index your code
hub / github.com/aframevr/aframe / getRotation

Function getRotation

src/core/a-entity.js:857–865  ·  view source on GitHub ↗
(entityEl)

Source from the content-addressed store, hash-verified

855}
856
857function getRotation (entityEl) {
858 var radToDeg = THREE.MathUtils.radToDeg;
859 var rotation = entityEl.object3D.rotation;
860 var rotationObj = entityEl.rotationObj;
861 rotationObj.x = radToDeg(rotation.x);
862 rotationObj.y = radToDeg(rotation.y);
863 rotationObj.z = radToDeg(rotation.z);
864 return rotationObj;
865}
866
867AEntity.componentsUpdated = [];
868AEntity.singlePropUpdate = {};

Callers 1

getAttributeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected