Struct GrooveJoint2D
Groove constraint for 2D physics.
struct GrooveJoint2D
;
This is useful for making a body "slide" through a segment placed in another.
Properties
Name | Type | Description |
---|---|---|
initialOffset [get, set]
|
double | The body B's initial anchor position defined by the joint's origin and a local offset initialOffset along the joint's Y axis (along the groove).
|
length [get, set]
|
double | The groove's length. The groove is from the joint's origin towards length along the joint's local Y axis.
|
Methods
Name | Description |
---|---|
getInitialOffset
|
|
getLength
|
|
setInitialOffset
|
|
setLength
|