Examples of MotionStateBind


Examples of net.anzix.fsz.world.MotionStateBind

        shape.calculateLocalInertia(mass, localInertia);
        // set initial transform based on box
        Transform startTransform = new Transform();
        startTransform.setIdentity();
        startTransform.origin.set(box.getTranslation().getXf(), box.getTranslation().getYf(), box.getTranslation().getZf());
        MotionStateBind motionState = new MotionStateBind(startTransform);
        motionState.setSpatial(box);
//         create the RigidBody for our box
        RigidBodyConstructionInfo rbInfo = new RigidBodyConstructionInfo(mass,
                motionState, shape, localInertia);
        RigidBody body = new RigidBody(rbInfo);
//        body.setRestitution(0.1f);
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.