Create Grenade
Last updated
Last updated
To create the grenade itself, you need its model, which you can buy from people who are engaged in 3D modeling, download from the Assets Store or make with your own hands in any 3D editor. Next, we add the components:
RigidBody
Collider
Physics Grenade
This parameter is responsible for receiving damage based on the distance from the explosion.
To set the condition at which distance we will receive a specific damage, click on the plus and add a new condition.
Property
Description
Explosion Effect
Here we move the Particle System, which is located on the grenade to play it when it explodes.
Explosion Sound
The sound of an explosion.
Meshes
All Renderers are moved here to hide them after the explosion.
Property
Description
Timer
Time for an explosion.
Cover Radius
The explosion radius.
Culling Layer
Interaction layers.
Property
Description
Distance
The distance from the explosion to the object.
Damage
The damage received.
Impulse
The impulse of repulsion.
Upwards Modifier
The force of throwing up.
Shake Settings
Setting up the camera shake during an explosion.
Property
Description
Pool Object ID
ID in the pool.
Delayed Time
The time of removal to the pool.