Package aspect.physics.dynamics

Examples of aspect.physics.dynamics.PointGravity


        RigidBody rb = new RigidBody(World.main);
        rb.mass = mass;
        addBehavior(rb);
       
        gravity = new PointGravity(this);
        World.main.addForce(gravity);
    }
View Full Code Here


        ship.pos = new Vector3(earth.pos.x, earth.pos.y + earthWidth / 2 + 300e3f);
        ship.addBehavior(new RigidBody());
        ship.rigidBody().mass = 78e3f;
        ship.rigidBody().velocity.x = 7700f;

        earthGravity = new PointGravity(earth);
        moonGravity = new PointGravity(moon);

        ship.rigidBody().addForce(earthGravity);
        ship.rigidBody().addForce(moonGravity);

        //earth.rigidBody().addForce(moonGravity);
View Full Code Here

TOP

Related Classes of aspect.physics.dynamics.PointGravity

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.