-Touchscreen Joystick-

Description

PropollyGDS offers a reliable and user-friendly 2D joystick for controlling character movement and rotation on touchscreen devices.
With a simple drag and release feature, users can effortlessly maneuver their characters with precision and ease.
This tool is ideal for developers creating engaging applications requiring intuitive touchscreen controls.
The user will be able to freeze movement or rotation on either the x or y-axis and adjust the character's speed, rotation speed, and joystick controls.
This level of customization provides the user with the artistic freedom to fine-tune aspects of their character's movement and behavior with minimal effort.
The PropollyGDS 2D joystick comes with clear and comprehensive documentation, making it easy for users to adjust specific behaviors and achieve the desired character controls.

How to use

  • Import the Package into the Project.
  • Drag and drop the player prefab into the scene.
  • Ensure that an event listener is present in the scene hierarchy.
  • Enjoy!

Player Customization

  • Speed: The speed variable controls the player's movement speed, allowing them to move faster or slower across the playable area based on the Speed value.
  • Max Rotation Angle: If directional rotation X is true and directional rotation Y is false, the player will rotate up to -(Max Rotation Angle) while moving left, and up to +(Max Rotation Angle) while moving right.
  • Return Rotation Speed: If "return to original rotation" is true, the player will rotate back to (0,0,0) once the joystick is no longer receiving input. Return rotation speed controls the speed at which the player will rotate to (0,0,0).
  • Return to Original Rotation: If this variable is set to true, the player will rotate back to (0,0,0) once the joystick is no longer receiving input. If set to false, the player will maintain its rotation.
  • Freeze Pos X: If true, the player will only be able to move up and down.
  • Freeze Pos Y: If true, the player will only be able to move left and right.
  • Directional Rotation X: If true, the player will rotate left and right based on input.
  • Directional Rotation Y: If both Directional Rotation X and Directional Rotation Y are true, the player will be able to rotate 360 degrees based on joystick input.

Joystick Customization

  • Drag Threshold: The minimum drag distance required to register joystick input.
  • Drag Movement Distance: The maximum distance that the joystick can be moved from its center.
  • Drag Offset Distance: The maximum distance that the joystick can be dragged from its initial position.