Page 1 of 1

targetted CollisionFree

PostPosted: Tue Feb 27, 2007 9:09 am
by zoiba
CollisionFree function could be useful in many situation but if you have complex graphic it may be a pain to control it.
I wish to have the option for checking collision in advance only with a specific object instead of checking all objects in scene.

PostPosted: Tue Feb 27, 2007 1:04 pm
by Fuzzy
Divide your view area up with filled actors. have each one have a list of actors within its area. Each of these has collision turned off. when the filled actor is collided, it turns on its content actors collisions. If need be, nest the several levels deep.

PostPosted: Tue Feb 27, 2007 3:09 pm
by zoiba
I tried this: turn off collisions not interested in test, check collision at given x, y with collisionFree command, turn on all collisions. All actors having physical reaction start falling at this point. It seems to me that GE can't reactivate collision for them.

PostPosted: Wed Feb 28, 2007 6:13 pm
by morcior
collisionfree is pretty useless at the moment I have to agree....

you should be able to pass it at least an actor name to exclude from its check. better yet, let us put actors into groups and exclude an entire group of actors with collisionfree :)

PostPosted: Thu Mar 01, 2007 1:19 am
by Sgt. Sparky
yeah,
I agree.
I get really frustrated when I have a path of actors and my actor goes to one at a time out of order. :( :cry:

PostPosted: Mon Mar 26, 2007 1:53 am
by Sgt. Sparky
you can use GetCLone right?
I will set up a code just in a bit :D