Clockwise or Counterclockwise

Software: Away3D 4.x

Reaven99, Newbie
Posted: 20 August 2013 09:44 PM   Total Posts: 6

Hello,

I have code i used before with box2das3 to caluclate if the car should rotate clockwise or counterclockwise but when i used the same code with away3d it did not work, it gave me all wrong angles and angledifferenses..

Could anyone point me in the right direction to calculate if the rigidbody is rotated towards a waypoint or if it should rotate clockwise or counterclockwise?

I am using:
away3d 4.0.9 gold
awayphysics-core-fp11-master

I am looking foward to all replies!

Big thanks in advance!

Regards

   

Reaven99, Newbie
Posted: 22 August 2013 11:18 AM   Total Posts: 6   [ # 1 ]

BUMP.

Anyone who is able to solve this problem fast please contact me, i am willing to pay for this piece of code.

Regards

   

John Brookes, Moderator
Posted: 22 August 2013 01:03 PM   Total Posts: 732   [ # 2 ]

mtx = car.transform.clone();
mtx.invert();
wpPos =  mtx.transformVector(currentWP.clone());

var inputSteer:Number = (wpPos.x / wpPos.length)

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X