Press on object, and be able to control that object you pressed on.
As in title, i wan't to be able to press on an object, and then be able to control that object (with w,a,s,d - or mouse click)
please, if you can help me in the comments :)
if you use 2D, attach 2dcollider to wherever you want to touch, otherwise 3dcollider. on touch of screen overlappoint in 2d for detection, in 3d raycast a screenpointtoray. you then could save a reference to whatever you have touched for later redo and add a script to it with the control logic (or just enable one if it already exists)
Your answer
Follow this Question
Related Questions
How do I get a character to walk on walls and ceilings? 1 Answer
Why does my object's position change when I rotate it? 0 Answers
Object Player Movement stops working after Restarting Unity 0 Answers
The referenced script on this Behaviour is missing! | Help Fast :/ 1 Answer
i want to set maximum speed 1 Answer