Darthfett / A-Priori-Physics-System

A side-scroller game based upon Mega Man X, with a priori collision detection, and objects being represented as a sequence of connected points.
3 stars 0 forks source link

Friction #36

Open Darthfett opened 12 years ago

Darthfett commented 12 years ago

Adding friction to collisions and resting state might be feasible:

During collision between a line L and a point P, the relative velocity after collision parallel to the line L can be multiplied by a constant F, the friction constant (possibly determined using some equation combining a friction constant for objects owning L and P).

During resting between a line L and a point P, use acceleration opposite the direction of the relative velocity parallel to L, until relative velocity parallel to L is zero. The magnitude of this friction would be some friction constant F (also possibly determined using some equation combining friction constants for objects owning L and P) times the magnitude of acceleration in the direction normal to L (excluding the normal acceleration for the line).

This friction during resting states would indicate a requirement to always know the actual acceleration of an object.