Kanda Players 0.7.0
|
This system finds the first entity with ControlMainCamera component and adds a MainCameraRef if the main camera is ready. Then, it applies the position/rotation of this entity to the main camera. This manual synchronization is required because the main camera cannot reside in an entity sub-scene. We assume that the player parts that may control the main camera are root-level entities, so the position/rotation is replicated directly from their LocalTransform. More...
Public Member Functions | |
void | OnCreate (ref SystemState state) |
void | OnUpdate (ref SystemState state) |
This system finds the first entity with ControlMainCamera component and adds a MainCameraRef if the main camera is ready. Then, it applies the position/rotation of this entity to the main camera. This manual synchronization is required because the main camera cannot reside in an entity sub-scene. We assume that the player parts that may control the main camera are root-level entities, so the position/rotation is replicated directly from their LocalTransform.