Skip to content

physics.CreatePivotConstraint

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

API: physics.CreatePivotConstraint

Description:

Creates a pivot constraint between two entities.

Prototype:

physics.CreatePivotConstraint(first: Entity, second: Entity, firstAnchor: vec2, secondAnchor: vec2) -> constraint: PivotConstraint

Parameters:

  1. first: First entity of the constraint.
  2. second: Second entity of the constraint.
  3. firstAnchor: First entity position offset to attach the constraint to.
  4. secondAnchor: Second entity position offset to attach the constraint to.

Returns:

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