Next: Mouse Torque, Previous: Mouse Aim, Up: Motion [Contents][Index]
This component causes an object to always be at the position of the mouse in the world. To use, add it to an object that you want to follow the mouse. Then, populate the Layer Mask at the top with layers of objects that represent the world geometry, such as the terrain. Then, this object will always be under the player’s cursor while it’s alive, as long as the cursor is over one of these object groups. This can be useful for selection painting, object placement, spellcasting, or creating a light around the cursor in dimly-lit game areas.
LayerMask layerMaskWhat kinds of things can the mouse pass onto?
float maxDistanceHow far away can the mouse be at most?
Default value: 1500.0f
bool constrainXShould my position be constrained on the X axis?
Default value: false
bool constrainYShould my position be constrained on the Y axis?
Default value: false
bool constrainZShould my position be constrained on the Z axis?
Default value: false
LayerMask layerMaskWhat kinds of things can the mouse pass onto?
float maxDistanceHow far away can the mouse be at most?
Default value: 1500.0f
bool constrainXShould my position be constrained on the X axis?
Default value: false
bool constrainYShould my position be constrained on the Y axis?
Default value: false
bool constrainZShould my position be constrained on the Z axis?
Default value: false
Next: Mouse Torque, Previous: Mouse Aim, Up: Motion [Contents][Index]