Examples of applyImpulse()


Examples of com.bulletphysics.dynamics.RigidBody.applyImpulse()

                impulse.normalize();
                float impulseStrength = 10f;
                impulse.scale(impulseStrength);
                Vector3f relPos = new Vector3f();
                relPos.sub(rayCallback.hitPointWorld, body.getCenterOfMassPosition(new Vector3f()));
                body.applyImpulse(impulse, relPos);
              }
            }
          }
        }
        else {
View Full Code Here

Examples of com.bulletphysics.dynamics.RigidBody.applyImpulse()

          // apply previous frames impulse on both bodies
          body0.applyImpulse(totalImpulse, rel_pos1);

          tmpVec.negate(totalImpulse);
          body1.applyImpulse(tmpVec, rel_pos2);
        }

      }
    }
  }
View Full Code Here

Examples of com.bulletphysics.dynamics.RigidBody.applyImpulse()

          rel_pos.z *= wheel_info.rollInfluence;
          chassisBody.applyImpulse(sideImp, rel_pos);

          // apply friction impulse on the ground
          tmp.negate(sideImp);
          groundObject.applyImpulse(tmp, rel_pos2);
        }
      }
    }
  }
 
View Full Code Here

Examples of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.Joint.applyImpulse()

                }
            }
           
            for (int k=0;k<joints.size();++k) {
                Joint j = joints.get(k);
                j.applyImpulse();
            }
        }
       
       
        for (int i=0;i < bodies.size(); ++i)
View Full Code Here

Examples of net.sf.fysix.world.Planet.applyImpulse()

        pos.addScaled(16, dir);
        bullet.setPosition(pos);
        dir.scale(1000000);
        //bullet.setVelocity(dir);
        world.addObject(bullet, true);
        bullet.applyImpulse(dir);
        //dir.scale(-1);
        //playerShip.applyImpulse(dir);
      }
     
      //
View Full Code Here

Examples of net.sf.fysix.world.Planet.applyImpulse()

        pos.addScaled(16, dir);
        bullet.setPosition(pos);
        dir.scale(1000000);
        //bullet.setVelocity(dir);
        world.addObject(bullet, true);
        bullet.applyImpulse(dir);
      }
     
      // Advance the game time by one tick
      engine.tick(1.0 / tickRate);
      nextTick += NANOS_PER_SEC / tickRate;
View Full Code Here

Examples of net.sf.fysix.world.WorldObject.applyImpulse()

        pos.addScaled(16, dir);
        bullet.setPosition(pos);
        dir.scale(1000000);
        //bullet.setVelocity(dir);
        world.addObject(bullet, true);
        bullet.applyImpulse(dir);
        //dir.scale(-1);
        //playerShip.applyImpulse(dir);
      }
     
      //
View Full Code Here

Examples of net.sf.fysix.world.WorldObject.applyImpulse()

        pos.addScaled(16, dir);
        bullet.setPosition(pos);
        dir.scale(1000000);
        //bullet.setVelocity(dir);
        world.addObject(bullet, true);
        bullet.applyImpulse(dir);
      }
     
      // Advance the game time by one tick
      engine.tick(1.0 / tickRate);
      nextTick += NANOS_PER_SEC / tickRate;
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.