1 Answer
1the example there is almost exactly what you want.
just need to change it to:
public class ExampleClass : MonoBehaviour {
void OnTriggerEnter(Collider other) {
if (other.gameObject.tag == "Player"){
Destroy(gameObject);
}
}
}
@Masterio if i understand I should multiply each of the _speed statements by a speed variable?
– djibrilkande009
add a script to the object, use OnCollisionEnter, check if it's the player, destroy
– hexagonius