Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys,
I am developing an android project.I am working in unity3d game engine.I want to select parts of a.obj 3D object and manipulate it by touching.How can I do that??
Is it possible to get the x,y and z coordinates of position of touch??
Posted

1 solution

Search for a concept called '3D Picking' or 'Mouse picking' Or Ray-casting or all three.

There is a Unity3D Camera function 'ScreenPointToRay'[^]
which gives you a 3D ray starting from your 2D screen along the 3D viewing direction.

Also check out the Raycast[^] function which gives you the 3D object hit by a ray (if any) in the scene.

I hope this helps
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900