Sign in to follow this  
droggam

3d positioning

Recommended Posts

Hi leta say i have a spaceship, how do i define a special point in vector3 y,z,x

with help with THE scene in My case i try attach a flag but dont know how to find 3d position easiest possible way?

Share this post


Link to post
Share on other sites

I'm not sure I understand. You can define a vector3 position? It is very simple :

mesh.position = new BABYLON.Vector3(5, 1.0,  12);

You can get a position with :

var positionVector3 = mesh.position.clone();

var positionX = mesh.position.x;

Share this post


Link to post
Share on other sites

ye i understand i guess i need to bruteforce try get the correct position

problem with your solution is it get the center of the spaceship but not like on top of it where i want my flag?

@Dad72

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.