| 163 | } |
| 164 | |
| 165 | void Physics3DComponent::setTransformInPhysics(const ax::Vec3& translateInPhysics, |
| 166 | const ax::Quaternion& rotInPhsyics) |
| 167 | { |
| 168 | Mat4::createRotation(rotInPhsyics, &_transformInPhysics); |
| 169 | _transformInPhysics.m[12] = translateInPhysics.x; |
| 170 | _transformInPhysics.m[13] = translateInPhysics.y; |
| 171 | _transformInPhysics.m[14] = translateInPhysics.z; |
| 172 | |
| 173 | _invTransformInPhysics = _transformInPhysics.getInversed(); |
| 174 | } |
| 175 | |
| 176 | void Physics3DComponent::setSyncFlag(PhysicsSyncFlag syncFlag) |
| 177 | { |