KitStdPhysics
Physic utilities.
Functions
Section titled “Functions”populateConstraintAttachments
Section titled “populateConstraintAttachments”function KitStdPhysics.populateConstraintAttachments(constraint: Constraint): (Attachment, Attachment)Creates 2 attachments and sets them to the constraint attachment properties.
Parameters
Section titled “Parameters”constraint : Constraint
Section titled “constraint : Constraint”Returns
Section titled “Returns”Attachment
Section titled “Attachment”`
Attachment
Section titled “Attachment”`
function KitStdPhysics.weld( trove: trove.Trove, target: BasePart, weldToTarget: BasePart, unanchorTarget: boolean?
): WeldConstraintWelds the weldToTarget to the target. Optionally unanchors the
weldToTarget.
Parameters
Section titled “Parameters”trove : trove.Trove
Section titled “trove : trove.Trove”target : BasePart
Section titled “target : BasePart”weldToTarget : BasePart
Section titled “weldToTarget : BasePart”unanchorTarget : boolean?
Section titled “unanchorTarget : boolean?”Returns
Section titled “Returns”WeldConstraint
Section titled “WeldConstraint”`