#1
|
|||
|
|||
Point of an intersecting line and plane
Hello,
I am trying to work with moving objects using the mouse. for doing this I want to calculate the position of the mouse on XY plane. When the XY coordinates are known i want to move the ball to those XY coordinates. I have a ball in my world which will be the object of moving. here is the code so far: plane = vizshape.addPlane() plane.setPosition(0,0,ball.getPosition[2]) mouseposition = Camera.main.ScreenPointToRay(Input.mousePosition); I tried to use viz.intersect but got a lot of errors. do you guys have any advice. With kind regards. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find collision point of line and arbitrary object | asdf | Vizard | 2 | 01-28-2013 11:04 AM |