playMaker

Author Topic: NavMeshAgent knockback action  (Read 1071 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
NavMeshAgent knockback action
« on: July 16, 2016, 09:47:44 AM »
Feed this action the game object that has hit your agent and it will knock the agent back according to the hit object-



On Snipt and ecosystem
https://snipt.net/raw/c20faa081bfa909176e4389d6ddf9063/?nice
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

fletcherkildren

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: NavMeshAgent knockback action
« Reply #1 on: March 08, 2017, 07:18:15 AM »
is this still available? I can't find it on Ecosystem! never mind- just saw you uploaded your actions to github!
« Last Edit: March 08, 2017, 07:33:58 AM by fletcherkildren »

SPACE GAMER

  • Playmaker Newbie
  • *
  • Posts: 33
    • View Profile
    • Portfolio
Re: NavMeshAgent knockback action
« Reply #2 on: April 27, 2017, 09:52:07 PM »
NICE!

christougher

  • Playmaker Newbie
  • *
  • Posts: 30
    • View Profile
Re: NavMeshAgent knockback action
« Reply #3 on: September 15, 2017, 09:27:21 PM »
Hi, I can't seem to find this specific action on your GitHub. I found one similar at
https://github.com/mdotstrange/MdotsCustomPlaymakerActions/blob/master/KnockbackAction.cs

however this action lacks the smoothing.  Any chance I could peek at the code?  Thx!
Chris

Microfox

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: NavMeshAgent knockback action
« Reply #4 on: October 24, 2017, 05:13:18 AM »
Any chance this action is still around somewhere? I can't seem to find it on the GitHub.

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: NavMeshAgent knockback action
« Reply #5 on: October 29, 2017, 05:35:33 PM »
Are you using a Navmesh agent?

I found the proper way to do it with a NavMesh agent is to also use a rigidbody- this is the way I do it now-

So when the agent is hit you switch off the NavmeshAgent- then enable the rigidbody + add a physics force and let that play out for a bit- this way agents can fall from heights etc-

I'll make a new version of this that incorporates that and post it here soon-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

christougher

  • Playmaker Newbie
  • *
  • Posts: 30
    • View Profile
Re: NavMeshAgent knockback action
« Reply #6 on: November 04, 2017, 10:36:36 PM »
Looking forward to it!  yes, I'm using a navmesh agent and have a rigidbody as well.  I've tried setting the navmesh agent's updateposition to false and applying force and seem to get inconsistent results...  sometimes it works perfect, sometimes it doesn't seem to click... so, looking forward to seeing it.

christougher

  • Playmaker Newbie
  • *
  • Posts: 30
    • View Profile
Re: NavMeshAgent knockback action
« Reply #7 on: November 21, 2017, 01:38:46 PM »
Ever get around to making this?  :D