/** * Sets the physics object location * @param location the location of the actual physics object */ public void setPhysicsLocation(Vector3f location) { rBody.getCenterOfMassTransform(tempTrans); Converter.convert(location, tempTrans.origin); rBody.setCenterOfMassTransform(tempTrans); motionState.setWorldTransform(tempTrans); }
/** * Sets the physics object rotation * @param rotation the rotation of the actual physics object */ public void setPhysicsRotation(Matrix3f rotation) { rBody.getCenterOfMassTransform(tempTrans); Converter.convert(rotation, tempTrans.basis); rBody.setCenterOfMassTransform(tempTrans); motionState.setWorldTransform(tempTrans); }
/** * Sets the physics object rotation * @param rotation the rotation of the actual physics object */ public void setPhysicsRotation(Quaternion rotation) { rBody.getCenterOfMassTransform(tempTrans); Converter.convert(rotation, tempTrans.basis); rBody.setCenterOfMassTransform(tempTrans); motionState.setWorldTransform(tempTrans); }
/** * Sets the physics object location * @param location the location of the actual physics object */ public void setPhysicsLocation(Vector3f location) { rBody.getCenterOfMassTransform(tempTrans); Converter.convert(location, tempTrans.origin); rBody.setCenterOfMassTransform(tempTrans); motionState.setWorldTransform(tempTrans); }
/** * Sets the physics object rotation * @param rotation the rotation of the actual physics object */ public void setPhysicsRotation(Matrix3f rotation) { rBody.getCenterOfMassTransform(tempTrans); Converter.convert(rotation, tempTrans.basis); rBody.setCenterOfMassTransform(tempTrans); motionState.setWorldTransform(tempTrans); }
/** * Sets the physics object rotation * @param rotation the rotation of the actual physics object */ public void setPhysicsRotation(Quaternion rotation) { rBody.getCenterOfMassTransform(tempTrans); Converter.convert(rotation, tempTrans.basis); rBody.setCenterOfMassTransform(tempTrans); motionState.setWorldTransform(tempTrans); }