/** * destroys this joint and removes it from its connected PhysicsRigidBodys joint lists */ public void destroy() { getBodyA().removeJoint(this); getBodyB().removeJoint(this); }
/** * Destroy this joint and remove it from the joint lists of its connected * bodies. */ public void destroy() { getBodyA().removeJoint(this); getBodyB().removeJoint(this); }
/** * Update this control. Invoked once per frame during the logical-state * update, provided the control is enabled and added to a scene. Should be * invoked only by a subclass or by AbstractControl. * * @param tpf the time interval between frames (in seconds, ≥0) */ @Override protected void controlUpdate(float tpf) { body.getBodyA().getPhysicsLocation(a.getTranslation()); body.getBodyA().getPhysicsRotation(a.getRotation()); body.getBodyB().getPhysicsLocation(b.getTranslation()); body.getBodyB().getPhysicsRotation(b.getRotation()); geomA.setLocalTransform(a); geomB.setLocalTransform(b); arrowA.setArrowExtent(body.getPivotA()); arrowB.setArrowExtent(body.getPivotB()); }
/** * Update this control. Invoked once per frame during the logical-state * update, provided the control is enabled and added to a scene. Should be * invoked only by a subclass or by AbstractControl. * * @param tpf the time interval between frames (in seconds, ≥0) */ @Override protected void controlUpdate(float tpf) { body.getBodyA().getPhysicsLocation(a.getTranslation()); body.getBodyA().getPhysicsRotation(a.getRotation()); body.getBodyB().getPhysicsLocation(b.getTranslation()); body.getBodyB().getPhysicsRotation(b.getRotation()); geomA.setLocalTransform(a); geomB.setLocalTransform(b); arrowA.setArrowExtent(body.getPivotA()); arrowB.setArrowExtent(body.getPivotB()); }
/** * destroys this joint and removes it from its connected PhysicsRigidBodys joint lists */ public void destroy() { getBodyA().removeJoint(this); getBodyB().removeJoint(this); }
/** * destroys this joint and removes it from its connected PhysicsRigidBodys joint lists */ public void destroy() { getBodyA().removeJoint(this); getBodyB().removeJoint(this); }
/** * destroys this joint and removes it from its connected PhysicsRigidBodys joint lists */ public void destroy() { getBodyA().removeJoint(this); getBodyB().removeJoint(this); }
@Override protected void controlUpdate(float tpf) { body.getBodyA().getPhysicsLocation(a.getTranslation()); body.getBodyA().getPhysicsRotation(a.getRotation()); body.getBodyB().getPhysicsLocation(b.getTranslation()); body.getBodyB().getPhysicsRotation(b.getRotation()); geomA.setLocalTransform(a); geomB.setLocalTransform(b); arrowA.setArrowExtent(body.getPivotA()); arrowB.setArrowExtent(body.getPivotB()); }
/** * Update this control. Invoked once per frame during the logical-state * update, provided the control is enabled and added to a scene. Should be * invoked only by a subclass or by AbstractControl. * * @param tpf the time interval between frames (in seconds, ≥0) */ @Override protected void controlUpdate(float tpf) { body.getBodyA().getPhysicsLocation(a.getTranslation()); body.getBodyA().getPhysicsRotation(a.getRotation()); body.getBodyB().getPhysicsLocation(b.getTranslation()); body.getBodyB().getPhysicsRotation(b.getRotation()); geomA.setLocalTransform(a); geomB.setLocalTransform(b); arrowA.setArrowExtent(body.getPivotA()); arrowB.setArrowExtent(body.getPivotB()); }