class

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.

Source

Instance methods

anchor_b

The location of the second anchor relative to the second body.

Source
anchor_b=(anchor_b : Vect)
Source
groove_a

The first endpoint of the groove relative to the first body.

Source
groove_a=(groove_a : Vect)
Source
groove_b

The second endpoint of the groove relative to the second body.

Source
groove_b=(groove_b : Vect)
Source