About Store Forum Documentation Contact



Post Reply 
Turning actor collision on and off
Author Message
Aniketos Offline
Member

Post: #1
Turning actor collision on and off
So lets say I want to disable collision for a few seconds with an specific actor and then re-enable it again how would I do it?

I figured out you can use ctrl.actor.ignore(attacker->ctrl.actor); to disable it but how to re-enable it again?
12-30-2010 03:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Masterxilo Offline
Member

Post: #2
RE: Turning actor collision on and off
Actor::ignore has a second parameter "Bool ignore" which is true by default.

Try the following to re-enable:
Code:
ctrl.actor.ignore(attacker->ctrl.actor, false);
(This post was last modified: 12-30-2010 09:55 PM by Masterxilo.)
12-30-2010 04:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Aniketos Offline
Member

Post: #3
RE: Turning actor collision on and off
Thanks works smile
12-30-2010 09:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply