Sign in to follow this  
Followers 0
Hans

rotation with lockjoint

4 posts in this topic

Hi @all,

I have a question about the rotation again. This time its also about the lock joint. I had a similar question in the past without lock joint here: http://www.html5gamedevs.com/topic/29158-solved-rotate-player-correct-on-rotating-platform/#comment-168011

I want the same as last time, but now with lock joint. I prepared a playground: http://babylonjs-playground.azurewebsites.net/#7CPXT#2 [In this PG you can rotate the platform with key v, b, and n. The player can rotate with the mouse (drag&drop)]

Without the lock joint the behavior is like I want, but for many reasons I need this behavior also with the lock joint.

The problem is, the player rotates in a strange circle on the ground. I mean the player changes his position on rotation too.

Here is a picture:

 

How can I rotate it right?

 

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.