Coordinate Information for a rigidBody

Post Reply
shashwatsher
Posts: 5
Joined: Thu Mar 19, 2015 6:08 pm

Coordinate Information for a rigidBody

Post by shashwatsher »

Hi Guys

given x,y coordinates of my mouse pointer, i am trying to find out if there is a Rigidbody present at that point. Can anyone guide me towards a relevant function call that does it?

thx
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Coordinate Information for a rigidBody

Post by Basroil »

You'll need the camera information as well, and then a simple ray test should let you pinpoint objects under your pointer. There's a few examples in the demos, and the shootBox code is half the solution right there as well.
Post Reply