Package jinngine.math

Examples of jinngine.math.Vector3.multiply()


      // velocity constraint to model the motors contribution at the limit
      if ( motorTargetVelocity<0 && motor>0) {
        extra.assign(
            b1,  b2,
            new Vector3(), b1.isFixed()? new Vector3():b1.state.inverseinertia.multiply(axis), new Vector3(), b2.isFixed()? new Vector3() : b2.state.inverseinertia.multiply(axis.multiply(-1)),
            new Vector3(), axis, new Vector3(), axis.multiply(-1),
            -this.motor,
            0,
            null,
            this.velocity-this.motorTargetVelocity, 0 );
        // add the motor constraint
View Full Code Here


      // if motor is working to leave the limit, we need an extra
      // velocity constraint to model the motors contribution at the limit
      if ( motorTargetVelocity>0 && motor>0) {
        extra.assign(
            b1,  b2,
            new Vector3(), b1.isFixed()? new Vector3():b1.state.inverseinertia.multiply(axis), new Vector3(), b2.isFixed()? new Vector3() : b2.state.inverseinertia.multiply(axis.multiply(-1)),
            new Vector3(), axis, new Vector3(), axis.multiply(-1),
            0,
            this.motor,
            null,
            this.velocity-this.motorTargetVelocity, 0 );
View Full Code Here

      // velocity constraint to model the motors contribution at the limit
      if ( motorTargetVelocity>0 && motor>0) {
        extra.assign(
            b1,  b2,
            new Vector3(), b1.isFixed()? new Vector3():b1.state.inverseinertia.multiply(axis), new Vector3(), b2.isFixed()? new Vector3() : b2.state.inverseinertia.multiply(axis.multiply(-1)),
            new Vector3(), axis, new Vector3(), axis.multiply(-1),
            0,
            this.motor,
            null,
            this.velocity-this.motorTargetVelocity, 0 );
View Full Code Here

   
   
   
    angular1.assign(
        b1,  b2,
        new Vector3(), b1.isFixed()? new Vector3():b1.state.inverseinertia.multiply(axis), new Vector3(), b2.isFixed()? new Vector3() : b2.state.inverseinertia.multiply(axis.multiply(-1)),
        new Vector3(), axis, new Vector3(), axis.multiply(-1),
        low,
        high,
        null,
        bvalue, 0 );
View Full Code Here

   
   
    angular1.assign(
        b1,  b2,
        new Vector3(), b1.isFixed()? new Vector3():b1.state.inverseinertia.multiply(axis), new Vector3(), b2.isFixed()? new Vector3() : b2.state.inverseinertia.multiply(axis.multiply(-1)),
        new Vector3(), axis, new Vector3(), axis.multiply(-1),
        low,
        high,
        null,
        bvalue, 0 );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.