DistanceJoint

Description

class DistanceJoint extends PhysicsJoint

A class representing a physics distance joint.

Constructor

new DistanceJoint(jointData)

Parameters

Name Type Description
jointData DistanceJointData

Methods

updateDistance(maxDistance, minDistance) void

Update the predefined distance.

Parameters

Name Type Description
maxDistance number
optional minDistance number