Stingray Forum (Read Only)
Welcome to Autodesk’s Stingray Forums. Share your knowledge, ask questions, and explore popular Stingray topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lua Mouse interactivity with Units

20 REPLIES 20
SOLVED
Reply
Message 1 of 21
Anonymous
1171 Views, 20 Replies

Lua Mouse interactivity with Units

Hi everyone!

 

I've been exploring how I can implement a function that can return the unit the mouse clicks on.. I've been looking at the functions in the Lua API, so far the ones that have caught my attention have been Camera.world_to_screen() and Camera.screen_to_world(). Also potentially using some form of raycast from the camera, though I can think of a few issues with that. Any ideas or examples on how to accomplish this?

 

Cheers,

Kaine

20 REPLIES 20
Message 21 of 21
dan.matlack
in reply to: Anonymous

Hey Kaine, I think I did that on accident earlier today, long thread, couple questions. So, did you figure out how to do the picking you're looking for?
______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report