Tutorial and custom action.
1. Imagine you want to throw your grenade (or missile or whatever) to a specific location, from a specific location. Ie, from your hand to the bad guys face. But how do you know exactly how much force to apply to get that rigidbody grenade to land at the exact spot? Watch the tutorial and download the custom actions from my github account!
It only takes 1 action to calculate and 1 action to launch. Easy.
2. Imagine you want to predict the path of that grenade BEFORE you throw it. And render the line on screen to show your players. That way they can decide if they want to throw it. I have a custom action for that too! (Please note, this second custom action set requires a paid asset called "Trajectory Predictor".
https://www.assetstore.unity3d.com/en/#!/content/55752I wrote a custom playmaker action to predict the path from playmaker (to use with this asset). The action is free, the asset is not.
All of this is covered in my tutorial here on youtube:
This is all rigidbody based (no animations), so that your grenade can hit a wall or bounce off the floor naturally. These calculations work with any height! No need for a flat ground.
Actions can be found here (although I strongly suggest you watch the tutorial first:
https://github.com/dumbgamedev/general-playmaker/tree/master/projectilesIf you like these custom actions and tutorials, feel pledge a few $ into my patreon account.
https://www.patreon.com/playmaker