How to use 'Collisions' command?

Blitz3D Forums/Blitz3D Beginners Area/How to use 'Collisions' command?

Happy Sammy(Posted 2005) [#1]
Hi all,

I found that
Collisions Object1, Scenery, 2, r

is commonly used (ellipsoid to polygon)
However, I tried sample examples and still could notice any difference between the values of r (r=1,2,3)?

The Sample examples:


1. How to use 'Collisions' command?
2. Will ODE or Tokamak have better (or faster) collision detection than the built-in "collisions" command?

Thanks in advance.
Sammy
:)


Matty(Posted 2005) [#2]
I don't think that sample works as it should, try this:

I've removed the collisions command from the loop and placed it outside. Change the final parameter to see how they differ. For some reason it doesn't work as you would expect when collisions is called within the loop.

2. I wouldn't know much about tokamak/ode so can't help there, although their use would really depend on the type of game you are writing.




Happy Sammy(Posted 2005) [#3]
Hi Matty,

You are absolutely right!!!
Collisions must be put outside the while loop!!!
I got it! I could see the difference now!!!

(With that changes, the messages displayed on the screen is meaningless and could be removed.)

Thanks a lot.
Sammy
:)