Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: sebaslive on April 20, 2013, 05:41:58 AM
-
Hey all,
I have my character doing a slide animation which is done by addForce but when the character does the action it goes through colliders. I found this http://answers.unity3d.com/questions/31730/collider-not-working-when-apply-addForce-high-enough.html but I am still not sure how to turn this into playmaker. Might be a better way but I haven't found a way...
Is there also a way to turn off and on box collider with actions?
Thanks for the help!
-
Hi,
easy :) simply drag the collider component ( not the gameObject, the actually collider component) in the state stack of actions, and choose "Set property" and select "enabled", set that to false and it will be deactivated.
bye,
Jean
-
Augh that is easy! Thanks Jean. As for addforce, I have my character going through colliders whenever the action of addforce is activated but the collider does stop the character when it is walking. I think it's because of the force being at high levels but how can I stop the character from going through the collider?
I tried copying the jump tutorial but it still continues to go through every collider with addforce.... :'(
-
Hi,
For physics to work properly, you need to have your gameObject scale to 1,1,1 is that the case? if your objects are scaled, you will have problems.
bye,
Jean
-
Wow I missed that completely. Thanks very much this has become 10x the worth with the consistent help!