Module bevy_mouse_tracking_plugin::mouse_pos
source · Structs
- A [
Command
] that adds theMousePos
component to a [Camera
], ensuring that the initial cursor position is correct. - A [
Command
] that adds the componentMousePosWorld
to an entity, with a correct initial position. For more details, see the docs forInitMouseTracking
. - Marker component for the main camera. If no main camera is specified, all cameras will be treated equally.
- The location of the mouse in screenspace.
This will be updated every frame during [CoreStage::First
]. Any systems that rely on this should come afterCoreStage::First
. - Plugin that tracks the mouse location.
- The location of the mouse in worldspace.
This will be updated every frame during [CoreStage::First
]. Any systems that rely on this should come afterCoreStage::First
.