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?
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?