/** * returns the location where the wheel collides with the ground (world space) */ public Vector3f getCollisionLocation() { return Converter.convert(wheelInfo.raycastInfo.contactPointWS); }
private static CompoundCollisionShape createCompoundShape( Node rootNode, CompoundCollisionShape shape, boolean meshAccurate) { return createCompoundShape(rootNode, rootNode, shape, meshAccurate, false); }
/** * creates a jme mesh from the collision shape, only needed for debugging */ public Mesh createJmeMesh(){ return Converter.convert(bulletMesh); }
private static CompoundCollisionShape createCompoundShape( Node rootNode, CompoundCollisionShape shape, boolean meshAccurate) { return createCompoundShape(rootNode, rootNode, shape, meshAccurate, false); }
/** * returns the normal where the wheel collides with the ground (world space) */ public Vector3f getCollisionNormal() { return Converter.convert(wheelInfo.raycastInfo.contactNormalWS); }
/** * returns the location where the wheel collides with the ground (world space) */ public Vector3f getCollisionLocation(Vector3f vec) { Converter.convert(wheelInfo.raycastInfo.contactPointWS, vec); return vec; }
/** * returns the normal where the wheel collides with the ground (world space) */ public Vector3f getCollisionNormal(Vector3f vec) { Converter.convert(wheelInfo.raycastInfo.contactNormalWS, vec); return vec; }
/** * creates a jme mesh from the collision shape, only needed for debugging */ public Mesh createJmeMesh(){ return Converter.convert(bulletMesh); }
public Vector3f getLocalPointA() { return Converter.convert(cp.localPointA); }
public Vector3f getPositionWorldOnA() { return Converter.convert(cp.positionWorldOnA); }
public Vector3f getNormalWorldOnB() { return Converter.convert(cp.normalWorldOnB); }
public Vector3f getPositionWorldOnB() { return Converter.convert(cp.positionWorldOnB); }
public Vector3f getLowerLimit() { return Converter.convert(motor.lowerLimit); }
public Vector3f getAccumulatedImpulse() { return Converter.convert(motor.accumulatedImpulse); }
public void setAccumulatedImpulse(Vector3f accumulatedImpulse) { Converter.convert(accumulatedImpulse, motor.accumulatedImpulse); }
public Vector3f getLateralFrictionDir2() { return Converter.convert(cp.lateralFrictionDir2); }
public void setUpperLimit(Vector3f upperLimit) { Converter.convert(upperLimit, motor.upperLimit); }
public void setLowerLimit(Vector3f lowerLimit) { Converter.convert(lowerLimit, motor.lowerLimit); }
public Vector3f getLocalPointB() { return Converter.convert(cp.localPointB); }
public Vector3f getUpperLimit() { return Converter.convert(motor.upperLimit); }