public ABRigidBody(GameObject _gameObject) { GameObject = _gameObject; Constraints = Constraints.NONE; Material = new PhysicsMaterial(); Mass = 100.0f; Inertia = 10.0f; LinearVelocity = Vector2.zero; Force = Vector2.zero; IgnoreGravity = false; Sleeping = false; World.Current.PhysicsWorld.AddRigidBody(this); }
public PhysicsMaterial(PhysicsMaterial _other) { Restitution = _other.Restitution; StaticFriction = _other.StaticFriction; DynamicFriction = _other.DynamicFriction; }