struct

Flock::Collision::ContactConstraint2D

Inherits Struct < Value < Object

A precomputed velocity constraint for one contact point. jn/jt are the ACCUMULATED normal/tangent impulses (warm-started, then clamped as a whole).

Constructors

new(i : Int32, j : Int32, key : UInt64, point : Flock::Vec2, ra : Flock::Vec2, rb : Flock::Vec2, normal : Flock::Vec2, tangent : Flock::Vec2, normal_mass : Float32, tangent_mass : Float32, velocity_bias : Float32, friction : Float32, jn : Float32, jt : Float32)
Source

Instance methods

friction
Source
jn=(jn : Float32)
Source
jt=(jt : Float32)
Source
normal
Source
normal_mass
Source
point
Source
tangent
Source
tangent_mass
Source
velocity_bias
Source