Message 1 of 1
Wheels Rotation Script Fix

Not applicable
05-23-2017
01:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi i have a problem , my wheels rotate in this the if i transalte in the x dericertion but when i turn my main controller ithe wheels stop rotating or rotates backwards
anyone can help me out a bit?
wheel_joint_01.rotateZ = (MainController.translateX/(2*3.14*1))*-360;
wheel_joint_02.rotateZ = (MainController.translateX/(2*3.14*1))*-360;
wheel_joint_03.rotateZ = (MainController.translateX/(2*3.14*1))*-360;
wheel_joint_04.rotateZ = (MainController.translateX/(2*3.14*1))*-360;