| 179 | } |
| 180 | |
| 181 | bool 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 | |
| 198 | const char * Entity::_getRotation(void* obj, const char* data) |
| 199 | { |
nothing calls this directly
no test coverage detected