Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: WeldJoint

[17:7] extends: Joint

Wraps jbox2d's WeldJoint (com.almasb.fxgl.physics.box2d.dynamics.joints.WeldJoint). Glues two bodies together. Because the island constraint solver is approximate, a weld joint can still distort somewhat under load; use the frequency/damping for soft welds.

Methods

  • WeldJoint ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing WeldJoint AussomJavaObject.

  • getLocalAnchorA ()

    Returns the local anchor on body A as a Vec2 wrapper.

  • getLocalAnchorB ()

    Returns the local anchor on body B as a Vec2 wrapper.

  • getReferenceAngle ()

    Returns the reference angle (radians).

  • getFrequency ()

  • setFrequency (double Hz)

  • getDampingRatio ()

  • setDampingRatio (double Ratio)