![Character Planting Wheat seedlings](https://media.indiedb.com/images/members/5/4294/4293023/profile/ezgif-2-b7b58e9c9f18.gif)
Hello!
Discussed is the mechanic to throw seeds. The projectile actor class follows the same structure as that of the “First Person” Example template from Epic, with a few modifications:
Custom Ground Collision:
Seeds should only be destroyed on collision with the ground, so we used a custom SurfaceType (assignable in Project Settings > Physics), and spawned plant actors with a simple animation when colliding with the ground. The animation was done using a timeline in blueprints.
One issue was ensuring Collision Component for the Projectile has bReturnMaterialOnMove enabled. This gives the physical material I use to identify the ground when the HitComponent() Event is triggered.
![image](https://66.media.tumblr.com/e08e4bd8e21da37b7c90e3f4ebaf59d2/tumblr_inline_plsfegkdkm1wxj2bn_540.png)
Seedling:
![Wheat](https://media.indiedb.com/images/members/5/4294/4293023/profile/Wheat.png)
This is good. Cheers!