playMaker

Author Topic: Lead Target / Find Intercept Point  (Read 7498 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Lead Target / Find Intercept Point
« on: March 16, 2014, 01:25:14 PM »
This action will take an Origin position and compute an intercept point for a moving target based on a speed variable. It's not perfect, but can be pretty powerful as is.

I'm working on AI and compiled this in an hour or so based on some reference code found on the unity forums (creds in code). Please feel free to test it and make suggestions or adjust it yourself.

// 21-Aug-14
// LeadTarget minor update to be in Physics category and check for Rigidbody on The Target.
// LeadTarget2d added
« Last Edit: August 21, 2014, 10:46:02 AM by Lane »
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
Re: Lead Target / Find Intercept Point
« Reply #1 on: March 16, 2014, 04:50:19 PM »
Looks great, If some of the basic game making functions can be implemented into PlayMaker instead of just the Unity Commands it would make it a truly powerful tool indeed!

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Lead Target / Find Intercept Point
« Reply #2 on: March 24, 2014, 04:17:34 PM »
Looks great, If some of the basic game making functions can be implemented into PlayMaker instead of just the Unity Commands it would make it a truly powerful tool indeed!

Yeah I wanna make some more of these sort of actions. I usually look at some code and find ways to translate that into actions but eventually I was just like "why don't I just use the code and expose the variables in a action?"... Makes way more sense and cleans up the states significantly.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Lead Target / Find Intercept Point
« Reply #3 on: March 24, 2014, 08:20:54 PM »
Super handy action, thx Lane!

Uttpd

  • Junior Playmaker
  • **
  • Posts: 70
Re: Lead Target / Find Intercept Point
« Reply #4 on: March 26, 2014, 12:25:23 PM »
Thanks for the magic

FRickReich

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Lead Target / Find Intercept Point
« Reply #5 on: July 16, 2014, 07:39:58 PM »
fantstic!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Lead Target / Find Intercept Point
« Reply #6 on: July 18, 2014, 08:14:34 AM »
Hi,

 should go on the ecosystem :)

bye,

 Jean

jameskyle

  • Playmaker Newbie
  • *
  • Posts: 15
Re: Lead Target / Find Intercept Point
« Reply #7 on: August 21, 2014, 08:48:07 AM »
Are there any plans for a version that supports rigidbody2D components? I'm having trouble getting it working in a 2D environment.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Lead Target / Find Intercept Point
« Reply #8 on: August 21, 2014, 10:16:07 AM »
Yup. I added it to the main post. =)
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jameskyle

  • Playmaker Newbie
  • *
  • Posts: 15
Re: Lead Target / Find Intercept Point
« Reply #9 on: August 21, 2014, 10:18:40 AM »
Wow, thanks for such a quick response! :D