playMaker

Author Topic: Box Collider, Addforce, Collisions not detected  (Read 4305 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Box Collider, Addforce, Collisions not detected
« 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!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Box Collider, Addforce, Collisions not detected
« Reply #1 on: April 22, 2013, 01:20:16 AM »
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

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Box Collider, Addforce, Collisions not detected
« Reply #2 on: April 22, 2013, 02:13:01 AM »
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....  :'(
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Box Collider, Addforce, Collisions not detected
« Reply #3 on: April 23, 2013, 02:26:09 PM »
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

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Box Collider, Addforce, Collisions not detected
« Reply #4 on: April 24, 2013, 12:02:32 AM »
Wow I missed that completely. Thanks very much this has become 10x the worth with the consistent help!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez