JV-ODE Physics Thread 6

Blitz3D Forums/Blitz3D Userlibs/JV-ODE Physics Thread 6

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.

Try changing the last part to the following:
dBodyDisable(ode\body)

if ch=1 then
     dBodySetPosition(ode\body,obx,oby,obz)
     ; Set linear velocity and rotational velocity to zero
     dBodySetLinearVel  (ode\body, 0,0,0)
     dBodySetAngularVel (ode\body, 0,0,0)
end if

PositionEntity ode\mesh,obx,oby,obz
dBodyEnable(ode\body)

Next