Mesh Position in World cooridnates

Recommended Posts

Hello, i am again...

i have a realy noob question but cant find an answer.

Since i playing with this Playground i try to figure out how i can get the position of the car (mesh = carBody ?)

Im not successful.

Line 42 - 44

        console.log("Poisition", carBody.position);

The only thing that changes is when i turning the steering wheel.
Nothing about the position on the ground...

I tought the carBody "merge" all meshes into one and move them around with them.
So that the positions property on child meshes a relative to the parent mesh.

I dont get it...

Share this post

Link to post
Share on other sites

Youre right buddy,

but i tryed this befor and nothing has changed. Only when i turn the steering wheel. This is the axis of rotation if i undertsand it correct.

There only move when my stering is 0, but i need the position of the centre from the car. at any time

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.