JV ODE _ Newbie Question

Blitz3D Forums/Blitz3D Userlibs/JV ODE _ Newbie Question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Look at the Blitz3D docs for 'pivots'.

You need to create a pivot and parent it to 'CMesh' (the car body), then offset the pivot on the y-axis.

; # Needs to be placed after the 'Create car body' code
Global YourPivot=CreatePivot(CMesh)
PositionEntity YourPivot,0,5,0


Next, point the camera at the pivot instead of the car body in the UpdateCam() function of the demo...

Change...

PointEntity Camera,CMesh

to...

PointEntity Camera,YourPivot