Home | History | Annotate | Download | only in objects

Lines Matching refs:mass

65     protected float mass = 1.0f;
82 public PhysicsRigidBody(CollisionShape shape, float mass) {
84 this.mass = mass;
93 if (collisionShape instanceof MeshCollisionShape && mass != 0) {
105 objectId = createRigidBody(mass, motionState.getObjectId(), collisionShape.getObjectId());
116 private native long createRigidBody(float mass, long motionStateId, long collisionShapeId);
119 if (mass == 0.0f) {
309 return mass;
313 * Sets the mass of this PhysicsRigidBody, objects with mass=0 are static.
314 * @param mass
316 public void setMass(float mass) {
317 this.mass = mass;
318 if (collisionShape instanceof MeshCollisionShape && mass != 0) {
323 updateMassProps(objectId, collisionShape.getObjectId(), mass);
325 if (mass == 0.0f) {
335 private native long updateMassProps(long objectId, long collisionShapeId, float mass);
570 if (collisionShape instanceof MeshCollisionShape && mass != 0) {
577 updateMassProps(objectId, collisionShape.getObjectId(), mass);
706 capsule.write(getMass(), "mass", 1.0f);
733 float mass = capsule.readFloat("mass", 1.0f);
734 this.mass = mass;