giorgi abashidze

How to get x and y of ground on mouse click (clientX,clientY)

Recommended Posts

hi everyone,I want to get x and y from ground when I click and where I click to do click to move.

I tried this but it not working to me:

P.S scene.meshes[1] is a ground 

var pickInfo = scene.meshes[1].pick(ev.clientX,ev.clientY);
error: Object doesn't support property or method 'pick'

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.