MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / _setRotation

Method _setRotation

Engine/source/T3D/entity.cpp:181–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181bool Entity::_setRotation(void *object, const char *index, const char *data)
182{
183 Entity* so = static_cast<Entity*>(object);
184 if (so)
185 {
186 RotationF rot;
187 Con::setData(TypeRotationF, &rot, 0, 1, &data);
188
189 //so->mRot = rot;
190 //MatrixF mat = rot.asMatrixF();
191 //mat.setPosition(so->getPosition());
192 //so->setTransform(mat);
193 so->setTransform(so->getPosition(), rot);
194 }
195 return false;
196}
197
198const char * Entity::_getRotation(void* obj, const char* data)
199{

Callers

nothing calls this directly

Calls 3

setDataFunction · 0.85
setTransformMethod · 0.45
getPositionMethod · 0.45

Tested by

no test coverage detected