Follow Mouse LPK_FollowMouse.cs

This component can be added to any object to cause it to follow the mouse position.

Suggested use:

This can be used to control a player object, or create a custom mouse cursor. Increased Interpolation Factor mitigates the delay between mouse and object movement.

Examples found in: Project 6

Components
Property Type Description Default Value
Component Properties
Z Depth Float At what Z depth should the object be relocated to. 0
Offset Vector3 Offset to apply to mouse position when setting translation. 0,0,0
Interpolation Factor Float What percentage of the distance between my current position and the target's should the object move every frame. 0.1
Debug Properties
Print Debug Info Boolean Toggle console debug messages. False
Label String Notes for the user about this component. This does nothing to the game or build. None