i have a question about the needed functions to turning a wheel. In python it was very easy to do that. I have calculated the amount of rotation and then i "added" this rotation angle onto my object for the specific axis:

Code: Select all

`me.Rotate("x", angle)`

Code: Select all

```
'get the object rotation of the previous frame
tsxGNodeGetAxesOrientation( pObj, @axis )
'set the time back to actual for this object
tsxAnimSetActiveTimeObject( pObj, actFrame )
'calculate the distance from this position to the last one
b = tsxDistanceToPoint3f( prevPos, actualPos )
'calculate the diameter of the object
tsxGNodeGetSize( pObj, @size )
r = size.y / 2
'calculate the amount of rotation
a = tsxDeg2Rad( ( b / ( r * PI ) ) * 180 )
'set the new rotation
tsxGNodeRotate( pObj, @actualPos, @axis, a, actFrame )
```