CP::Constraint::GrooveJoint
Inherits CP::Constraint / Reference / Object
Similar to a pivot joint, but one of the anchors is on a linear slide instead of being fixed.
Constructors
new(a : Body, b : Body, groove_a : Vect, groove_b : Vect, anchor_b : Vect)
The groove goes from groove_a to groove_b on body a, and the pivot is attached to anchor_b on body b.
All coordinates are body local.
Instance methods
anchor_b=(anchor_b : Vect)
Sourcegroove_a=(groove_a : Vect)
Sourcegroove_b=(groove_b : Vect)
Source