Skip to content

physics.CreateRotaryLimitConstraint

Jérôme Leclercq edited this page Dec 8, 2020 · 1 revision

API: physics.CreateRotaryLimitConstraint

Description:

Creates a rotary limit constraint between two entities.

Prototype:

physics.CreateRotaryLimitConstraint(first: Entity, second: Entity, minAngle: number, maxAngle: number) -> constraint: RotaryLimitConstraint

Parameters:

  1. first: First entity of the constraint.
  2. second: Second entity of the constraint.
  3. minAngle: Minimum angular limit in degrees.
  4. maxAngle: Maximum angular limit in degrees.

Returns:

  1. constraint: The newly created constraint.
Clone this wiki locally