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

Method setTransformInPhysics

core/physics3d/Physics3DComponent.cpp:165–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void 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
176void Physics3DComponent::setSyncFlag(PhysicsSyncFlag syncFlag)
177{

Callers 1

createMethod · 0.80

Calls 1

getInversedMethod · 0.45

Tested by

no test coverage detected