Joint:setEnabled

Edit

Enable or disable the Joint. Disabled joints do not affect the simulation in any way. If the Joint is no longer needed, Joint:destroy is a better option that completely removes the Joint from the simulation.

Joint:setEnabled(enabled)

Arguments

NameTypeDescription
enabledboolean Whether the Joint should be enabled.

Returns

Nothing

See also