|
| | VelocityConstraint ()=default |
| | Default constructor. More...
|
| |
| | VelocityConstraint (const VelocityConstraint ©)=default |
| |
| VelocityConstraint & | operator= (const VelocityConstraint ©)=default |
| |
| | VelocityConstraint (index_type contactIndex, RealNum friction, RealNum restitution, LinearVelocity tangentSpeed, const Manifold &manifold, BodyConstraint &bA, Length rA, BodyConstraint &bB, Length rB, Conf conf) |
| |
| UnitVec2 | GetNormal () const noexcept |
| | Gets the normal of the contact in world coordinates. More...
|
| |
| UnitVec2 | GetTangent () const noexcept |
| |
| InvMass | GetInvMass () const noexcept |
| |
| size_type | GetPointCount () const noexcept |
| | Gets the count of points added to this object. More...
|
| |
| Mat22 | GetK () const noexcept |
| | Gets the "K" value. More...
|
| |
| Mat22 | GetNormalMass () const noexcept |
| | Gets the normal mass. More...
|
| |
| index_type | GetContactIndex () const noexcept |
| | Gets the contact index. More...
|
| |
| RealNum | GetFriction () const noexcept |
| | Gets the combined friction of the associated contact. More...
|
| |
| RealNum | GetRestitution () const noexcept |
| | Gets the combined restitution of the associated contact. More...
|
| |
| LinearVelocity | GetTangentSpeed () const noexcept |
| | Gets the tangent speed of the associated contact. More...
|
| |
| Momentum | GetNormalImpulseAtPoint (size_type index) const noexcept |
| | Gets the normal impulse at the given point. More...
|
| |
| Momentum | GetTangentImpulseAtPoint (size_type index) const noexcept |
| | Gets the tangent impulse at the given point. More...
|
| |
| LinearVelocity | GetVelocityBiasAtPoint (size_type index) const noexcept |
| | Gets the velocity bias at the given point. More...
|
| |
| Mass | GetNormalMassAtPoint (size_type index) const noexcept |
| | Gets the normal mass at the given point. More...
|
| |
| Mass | GetTangentMassAtPoint (size_type index) const noexcept |
| | Gets the tangent mass at the given point. More...
|
| |
| Length2D | GetPointRelPosA (size_type index) const noexcept |
| | Gets the point relative position of A. More...
|
| |
| Length2D | GetPointRelPosB (size_type index) const noexcept |
| | Gets the point relative position of B. More...
|
| |
| void | SetNormalImpulseAtPoint (size_type index, Momentum value) |
| |
| void | SetTangentImpulseAtPoint (size_type index, Momentum value) |
| |
| const Point & | GetPointAt (size_type index) const |
| | Accesses the point identified by the given index. More...
|
| |
Contact velocity constraint.
- Note
- A valid contact velocity constraint must have a point count of either 1 or 2.
-
This data structure is 168-bytes large (on at least one 64-bit platform).
- Invariant
- The "K" value cannot be changed independent of: the total inverse mass, the normal, and the point relative positions.
-
The normal mass cannot be changed independent of: the "K" value.
-
The velocity biasses cannot be changed independent of: the normal, and the point relative positions.