Examples of force()


Examples of org.spout.api.component.entity.PhysicsComponent.force()

      PhysicsComponent physics = item.getOwner().getPhysics();
      physics.activate(mass, new SphereShape(1f), false, true);
      if (item instanceof Projectile) {
        ((Projectile) item).setShooter(entity);
      }
      physics.force(entity.getPhysics().getRotation().getDirection().mul(getLaunchForce()));
      this.onThrown(item, entity);
    }
  }
}
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.