Home | History | Annotate | Download | only in objects

Lines Matching refs:mass

70     protected float mass = 1.0f;
92 public PhysicsRigidBody(CollisionShape shape, float mass) {
94 this.mass = mass;
103 if(collisionShape instanceof MeshCollisionShape && mass != 0){
122 collisionShape.calculateLocalInertia(mass, localInertia);
124 constructionInfo = new RigidBodyConstructionInfo(mass, motionState, collisionShape.getCShape(), localInertia);
126 constructionInfo.mass = mass;
134 if (mass == 0.0f) {
310 return mass;
314 * Sets the mass of this PhysicsRigidBody, objects with mass=0 are static.
315 * @param mass
317 public void setMass(float mass) {
318 this.mass = mass;
319 if(collisionShape instanceof MeshCollisionShape && mass != 0){
323 collisionShape.calculateLocalInertia(mass, localInertia);
326 rBody.setMassProps(mass, localInertia);
327 if (mass == 0.0f) {
522 if(collisionShape instanceof MeshCollisionShape && mass!=0){
528 collisionShape.calculateLocalInertia(mass, localInertia);
657 capsule.write(getMass(), "mass", 1.0f);
684 float mass = capsule.readFloat("mass", 1.0f);
685 this.mass = mass;