Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Lane on March 16, 2014, 01:25:14 PM

Title: Lead Target / Find Intercept Point
Post by: Lane 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
Title: Re: Lead Target / Find Intercept Point
Post by: Marsh 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!
Title: Re: Lead Target / Find Intercept Point
Post by: Lane 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.
Title: Re: Lead Target / Find Intercept Point
Post by: escpodgames on March 24, 2014, 08:20:54 PM
Super handy action, thx Lane!
Title: Re: Lead Target / Find Intercept Point
Post by: Uttpd on March 26, 2014, 12:25:23 PM
Thanks for the magic
Title: Re: Lead Target / Find Intercept Point
Post by: FRickReich on July 16, 2014, 07:39:58 PM
fantstic!
Title: Re: Lead Target / Find Intercept Point
Post by: jeanfabre on July 18, 2014, 08:14:34 AM
Hi,

 should go on the ecosystem :)

bye,

 Jean
Title: Re: Lead Target / Find Intercept Point
Post by: jameskyle 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.
Title: Re: Lead Target / Find Intercept Point
Post by: Lane on August 21, 2014, 10:16:07 AM
Yup. I added it to the main post. =)
Title: Re: Lead Target / Find Intercept Point
Post by: jameskyle on August 21, 2014, 10:18:40 AM
Wow, thanks for such a quick response! :D