Jump to content

LookAt function


Gerente
 Share

Recommended Posts

Thanks to this amazing forum I have learn a lot of things, 

 

I have not found the function mesh.LookAt(mesh), does it exists?

 

Im my demo I can move the text around the pivot vector3.zero but the text should be always looking at the point zero. How can I do that?.

How to I get the normal of the plane?, UpVector, DownVector, etc.... ?

 

http://www.babylonjs-playground.com/#1282WV#5

 

Thanks

Link to comment
Share on other sites

Yes LookAt exist: see here.

http://babylondoc.azurewebsites.net/page.php?p=25145

 

You can also use billboardMode that keeps a plan still faces the camera:
mesh.billboardMode = BABYLON.Mesh.BILLBOARDMODE_ALL;
 
In your scene, I suggest you use a plan in place of meshGround, otherwise lookat and billboardmode have unexpected effects of horizontal orientation

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...