Body2D
A physics body in a World2D, independent from 3D BasePart behavior.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "Body2D" |
Position | Vector2 | Vector2.new(0, 0) |
Size | Vector2 | Vector2.new(32, 32) |
Rotation | number | 0 |
LinearVelocity | Vector2 | Vector2.new(0, 0) |
AngularVelocity | number | 0 |
Anchored | boolean | true |
Enabled | boolean | true |
Visible | boolean | false |
Density | number | 1 |
Friction | number | 0.3 |
Restitution | number | 0 |
IsSensor | boolean | false |
CollisionLayer | string | "Default" |
CollisionMask | string | "Default" |
AbsolutePosition | Vector2 | Vector2.new(0, 0) |
AbsoluteSize | Vector2 | Vector2.new(32, 32) |
Functions
syncAbsolute
Arguments
instanceReturns
This function returns nothing.
API
instance:syncAbsolute(instance)