Collisions without collisions

Blitz3D Forums/Blitz3D Programming/Collisions without collisions

Stevie G(Posted 2005) [#1]
Basically I would like to use stop collisions but ensure that the collided object doesn't actually collide. e.g. move it away from the collision surface so that it doesn't stick.

I have my reasons why I'm not using sliding collisions but in the example below there must be some offset which is failsafe ...

for example ...

Nx# = 0 : Ny# = 0 : Nz# = 0
Offset# = .05
cc = countcollisions( entity )
for c = 1 to cc
Nx = Nx + collisionnx( entity , c )
Ny = Ny + collisionny( entity , c )
etc..
next

Nx = Offset * ( Nx / cc )
Ny = Offset * ( Ny / cc )
translateentity entity, Nx, Ny, Nz

etc..

Where Offset needs to be a small number so that the object is as close as it can be without actually touching. Anyone have any experience of how low this Offset can be or ways around this?


big10p(Posted 2005) [#2]
Can't you find out by just experimenting - make Offset as small as possible?


Stevie G(Posted 2005) [#3]
I have but there always seems to be times when the entity sticks which I want to avoid like the plague.

I'll keep trying


Ross C(Posted 2005) [#4]
Can't you use sliding collisions, then get the collision coordinates? And set the model to them? Sorry if i'm reading your problem wrong.


Stevie G(Posted 2005) [#5]
Cheers Ross but that didn't work. I've had to stick with using sliding collisions and extrude a bit based on the collision normal .. that seems to work so far.