Aniketos
Member
|
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 |
|
Masterxilo
Member
|
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 |
|