playMaker

Author Topic: How affects a explosion the Player?  (Read 1311 times)

BobBoes

  • Playmaker Newbie
  • *
  • Posts: 8
How affects a explosion the Player?
« on: May 23, 2021, 11:34:19 AM »
Hey guys,

I need help. So I made an FSM with the action explosion. If  a Rocket hits a ground or the player, all the things in the explosion area goes away like in an explosion. That is what i wanted, but my problem is that my player is not affected by the explosion, everything else with a rigidBody are pushed away, but my Player is not moving, can anybody help me? I don't get further with my problem. Thanks for help.

By the way greetings from germany.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: How affects a explosion the Player?
« Reply #1 on: May 23, 2021, 01:01:03 PM »
Hi.
For you player movement you are probably using velocity, which overrides force.

but using force to move is a bad thing as well.

best thing to do is:
Before you do the explode, use a Sphere Cast or Circle Cast (Ecosystem)

and see if player gets hit.

if so, temporary disable the player control