
Virtual Joystick Controls (Unity Source Code) - movement & rotation-simple input multi touch system

Description
Test this asset on this link (WebGl)
NOTE: It can be used on 2D games as well as on 3D. This an example of 2D project that is made using this asset: https://www.youtube.com/watch?v=T7AbSXMgMWk
Requires Unity 2017.4.1 or newer version. Compatible for android and iOS.
I am always looking to improve my assets, so if you need any feature that you would like in new version or if you have any suggestion on how to improve this asset feel free to contact me.
This asset will provide you with movement + rotation joystick controls that is very easy to setup and use.
How to use it?
- Drag and drop “joystick.prefab“ from “Prefab” folder into your scene.
- Use “JoystickLeft.positionX” static variable inside your scripts to get left joysticks X axis value, use “JoystickLeft.positionY” to get Y axis value (you will get value from -1 to 1 for x and also from -1 to 1 for y axis).
- Use “JoystickRight.angle” to get right joysticks rotation value. Call “Mathf.Rad2Deg * JoystickRight.angle” if you want to get rotation in degrees and not in radians.
You can choose which joystick (left or right) you will use for movement and which one for rotation. Or you can use only one joystick for movement AND rotation.
Additional Options
If “Sticky” option is checked joystick will be invisible and it appear on the position where you touch the screen. If this option is unchecked joystick will always stay on the same position.
“Stick Movement Threshold” will determine how much joystick can move from its central position.
If “Move joystick base on drag” is checked joysticks base will move when finger or pointer is dragged outside of joysticks movement trashold.
“Freeze X” option will freeze X axis.
“Freeze Y” option will freeze Y axis.
| Author | hypercasual |
|---|---|
| Price | $5 |
| Sales | 2 |
| Rating | 0 (1) |
| Published | Jan 4, 2021 |
| Last Update | Jan 4, 2021 |
| Compatible Software | iOS 12, iOS 11, iOS 10.0.x, iOS 9.0.x, iOS 8.4.x, iOS 8.3.x, iOS 8.2.x, iOS 8.1.x, iOS 8.0.x, iOS 7.1.x, iOS 7.0.x, iOS 6.1.x, iOS 6.0, Other, Other, Android 9.0, Android 8.1, Android 8.0, Android 7.2.x, Android 7.1.x, Android 6.0, Android 5.0, Android 4.4.x, Android 4.3.x, Android 4.2.x, Android 4.1.x, Android 4.0.4, Android 4.0.3, Android 4.0, Other, Other |
| Demo Url | https://e-ugovor.rs/joystick_test/ |
| Mobile Files Included | Layered PSD |
| Video Preview Resolution | 1920x1080 |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other · 767 views · 2 clicksOther · Week 47 · 767 views · 2 clicks
🥈
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS · 921 views · 8 clicksSaaS · Week 47 · 921 views · 8 clicks
🥉
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 8,482 views · 74 clicksSaaS · Week 47 · 8,482 views · 74 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS · 914 views · 1 clicksSaaS · Week 47 · 914 views · 1 clicks