public Contact(Vector2 position, Vector2 normal, float seperation, ContactId contactId) { ContactId = contactId; Position = position; Normal = normal; Seperation = seperation; NormalImpulse = 0; TangentImpulse = 0; MassNormal = 0; MassTangent = 0; NormalVelocityBias = 0; NormalImpulseBias = 0; R1 = Vector2.Zero; R2 = Vector2.Zero; BounceVelocity = 0; }
public Contact(Vector2 position, Vector2 normal, float separation, ContactId contactId) { ContactId = contactId; Position = position; Normal = normal; Separation = separation; normalImpulse = 0; tangentImpulse = 0; massNormal = 0; massTangent = 0; normalVelocityBias = 0; normalImpulseBias = 0; r1 = Vector2.Zero; r2 = Vector2.Zero; bounceVelocity = 0; }