reckfellENGINE

GrooveJoint2D

A physics joint that restricts the movement of two 2D physics bodies to a fixed axis.

On this page
class GrooveJoint2DReckfellSharpInherits Joint2D

A physics joint that restricts the movement of two 2D physics bodies to a fixed axis.

A physics joint that restricts the movement of two 2D physics bodies to a fixed axis. For example, a StaticBody2D representing a piston base can be attached to a RigidBody2D representing the piston head, moving up and down.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

GrooveJoint2DConstructor
# GrooveJoint2D
C#
public GrooveJoint2D();

Properties2

InitialOffsetProperty
# InitialOffset
C#
public float InitialOffset { get; set; }

The body B's initial anchor position defined by the joint's origin and a local offset GrooveJoint2D.InitialOffset along the joint's Y axis (along the groove).

LengthProperty
# Length
C#
public float Length { get; set; }

The groove's length. The groove is from the joint's origin towards GrooveJoint2D.Length along the joint's local Y axis.

Methods4

GetInitialOffsetfloat
# GetInitialOffset
C#
public float GetInitialOffset();
Returns float
GetLengthfloat
# GetLength
C#
public float GetLength();
Returns float
SetInitialOffsetvoid
# SetInitialOffset
C#
public void SetInitialOffset(float offset);
Parameters
NameTypeDefault
offsetfloat—
SetLengthvoid
# SetLength
C#
public void SetLength(float length);
Parameters
NameTypeDefault
lengthfloat—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.