Another attempt at my linepicking problem

Blitz3D Forums/Blitz3D Programming/Another attempt at my linepicking problem

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.

No way at all... the cars are always on the ground, (cept for when they speed over a hill) and the wheels simply must not go through the floor... and they do.

I've already improved it down from 1440, but i cant find another way...


ON another note, i forgot to post my code yesterday, so here it is:
n#=.5
dst#=50*n#
dst2#=2*n#
TranslateEntity ent\mesh,(GLOBALCOLS(c2)\nx#)*dst2,(GLOBALCOLS(c2)\ny#)*dst2,(GLOBALCOLS(c2)\nz#)*dst2
unused = LinePick( EntityX(ent\mesh,1),EntityY(ent\mesh,1),EntityZ(ent\mesh,1),(GLOBALCOLS(c2)\nx#)*-dst,(GLOBALCOLS(c2)\ny#)*-dst,(GLOBALCOLS(c2)\nz#)*-dst,.0001)
			



This code is used to stop objects going through walls at high speeds in my code. Vorderman might recognise it as he wrote the original ODE routine...

Anyway, i need to get off to work, Hope there are some techniques lying around!

Cheers