Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

Interaction with meshes while the pointer is locked

$
0
0

Hi! I seriously do not know how to do this. I use the ActionManager, like so:

 

antagonist.actionManager.registerAction(new BABYLON.InterpolateValueAction(BABYLON.ActionManager.OnPickTrigger, antagonist, "scaling", new BABYLON.Vector3(2, 2, 2), 1000)).

 

I can click on a mesh and it performs the intended action, but I have the pointer lock implemented, as it is a first person game, so the cursor disappears. How do I enable that same action when my camera is centered on the mesh and I press the left mouse button? Any ideas?

 

Thanks in advance.

 

 


Viewing all articles
Browse latest Browse all 388

Trending Articles