Package org.terasology.physics.engine

Examples of org.terasology.physics.engine.PhysicsEngine


     *
     * @param entity The entity to set the location of.
     * @param newPos The new position of the entity.
     */
    private static void setPhysicsLocation(EntityRef entity, Vector3f newPos) {
        PhysicsEngine physics = CoreRegistry.get(PhysicsEngine.class);
        CharacterCollider collider = physics.getCharacterCollider(entity);
        collider.setLocation(newPos);
    }
View Full Code Here

TOP

Related Classes of org.terasology.physics.engine.PhysicsEngine

Copyright © 2018 www.massapicom. 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.