-
-
Notifications
You must be signed in to change notification settings - Fork 10
physics.CreatePinConstraint
Jérôme Leclercq edited this page Dec 8, 2020
·
1 revision
API: physics.CreatePinConstraint
Creates a pin constraint between two entities.
physics.CreatePinConstraint(first: Entity, second: Entity, firstAnchor: vec2, secondAnchor: vec2) -> constraint: PinConstraint
-
first: First entity of the constraint. -
second: Second entity of the constraint. -
firstAnchor: First entity position offset to attach the constraint to. -
secondAnchor: Second entity position offset to attach the constraint to.
-
constraint: The newly created constraint.