Working with physics
Depending on whether you are working as a backend or frontend programmer for a project, essentially meaning you’re working with the code infrastructure or with what players see respectively, working with physics may be something you do on a daily basis. While physics directly correlates with math and a backend programmer may work with CFrames
and math much more intensely, a frontend programmer needs to work with physical forces in the Workspace. There are several ways to do this; that is, primarily with properties and constraints.
Constraints
The Constraint base class consists of instances that can be utilized to create different physical behaviors within your experiences. Most constraints require Attachment
instances in order to work. These Attachments
must be parented to a BasePart
instance and serve mainly as a single point in a space that constraints can reference.
To make the process of setting up constraints easier, you can use the Constraints...