User Manual: Other Controller Components
From Color Infection Wiki
Contents |
Camera
A camera entity is used to control the camera. You can also call API function in an event handler to control the camera.
A camera entity has some more properties:
- Follow Target: the target the camera will follow
- Self: target entity is this camera entity itself
- Brothers: the center of the glued brothers.
- Follow X: follow x or not.
- Follow Y: follow y or not.
- Follow Angle: follow angle or not. (not supported now)
Gravity Controller
A gravity controller can be used to control the world gravity.
A gravity controller is also a circle shape, but the appearance properties can't be changed at runtime.
The properties of a gravity controller:
- Interactive Zones: which zones can be interactive.
- Only interactive when all shapes without joints connected are sleeping: whether or not the Interactive Zones can be interactive only when all physics shapes without joints connected are sleeping.
- Maximal Gravity Acceleration Magnitude": the potential maximum gravity acceleration
- Initial Gravity Acceleration Magnitude": the initial gravity acceleration
- Initial Gravity Acceleration Angle": the initial gravity acceleration direction
Multiple gravity controllers coexisting is allowed from v1.50. Before v1.50, the world gravity is totally determined by the only gravity controller if a gravity controller exists. From v1.50, the world gravity is determined by the world default gravity and all gravity controllers.
Power Source
A power source entity will apply some kind of power on its brother shapes.
Now there are 4 power source component types: Force Power Source, Torque Power Source, Impulse Power Source and Angular Impulse Power Source.