Extended from EventEmitter Camera¶
This class is included on every scene, it's used to move you around the scene
Properties¶
UDim2 OffsetPosition¶
Vector2 LocalPosition¶
This property is used to move the camera internally
Vector2 Limits¶
This property marks the limits to move the camera, for example, if you set Vector2.new(0.5, 0.5)
the camera will move only when it reaches the limit
boolean FollowSubject¶
This property defines if the camera is going to follow the defined subject
string Scene¶
Character Subject¶
This property defines the object which is going to follow the camera
Methods¶
Camera Constructor(scene: Scene
)¶
void GetPosition(
)¶
Gets the camera position
void SetPosition(udim2: UDim2
)¶
Sets the camera position
void SetSubject(subject: Character
)¶
Sets the camera subject
void LookTo(object: PhysicalObject
)¶
Events¶
Name |
Description |
---|---|