Package org.jbox2d.common

Examples of org.jbox2d.common.Vec2.negate()


                vel.x = ois.readFloat();
                vel.y = ois.readFloat();
                if (b == 0){
                    if (AirHockey.goali == 0){
                        AirHockey.mallet2.update(pos);
                        AirHockey.mallet2.body.setLinearVelocity(vel.negate());
                        AirHockey.mallet2.body.setAngularVelocity(0.0f);
                    }
                }else{
                    int idx = ois.readByte();
                    AirHockey.puck.get(idx).update(pos);
View Full Code Here


                        AirHockey.mallet2.body.setAngularVelocity(0.0f);
                    }
                }else{
                    int idx = ois.readByte();
                    AirHockey.puck.get(idx).update(pos);
                    AirHockey.puck.get(idx).body.setLinearVelocity(vel.negate());
                    AirHockey.puck.get(idx).body.setAngularVelocity(0.0f);
                }
            }
        } catch (IOException ex) {
            AirHockey.isWaiting = false;
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.