Expand description
Amethyst control crate.
Structs§
- ArcBall
Control Bundle - The bundle that creates an arc ball movement system. Note: Will not actually create a moving entity. It will only register the needed resources and systems. The generic parameters A and B are the ones used in InputHandler<A,B>. You might want to add “fly_movement” and “free_rotation” as dependencies of the TransformSystem. Adding this bundle will grab the mouse, hide it and keep it centered.
- ArcBall
Control Tag - To add an arc ball behaviour, add this to a camera which already has the FlyControlTag added.
- ArcBall
Rotation System - The system that manages the arc ball movement; In essence, the system will align the camera with its target while keeping the distance to it and while keeping the orientation of the camera.
- Control
TagPrefab PrefabData
for loading control tags on anEntity
- Cursor
Hide System - System which hides the cursor when the window is focused. Requires the usage MouseFocusUpdateSystem at the same time.
- Cursor
Hide System Desc - Builds a
CursorHideSystem
. - FlyControl
Bundle - The bundle that creates a flying movement system.
- FlyControl
Tag - Add this to a camera if you want it to be a fly camera. You need to add the FlyControlBundle or the required systems for it to work.
- FlyMovement
System - The system that manages the fly movement.
- FlyMovement
System Desc - Builds a
FlyMovementSystem
. - Free
Rotation System - The system that manages the view rotation.
- Free
Rotation System Desc - Builds a
FreeRotationSystem
. - Hide
Cursor - Resource indicating if the mouse should be grabbed and hidden by the CursorHideSystem when the window is focused.
- Mouse
Focus Update System - A system which reads Events and saves if a window has lost focus in a WindowFocus resource
- Mouse
Focus Update System Desc - Builds a
MouseFocusUpdateSystem
. - Window
Focus - Struct which holds information about whether the window is focused. Written to by MouseFocusUpdateSystem