Unity destroy objects on collision | Unity 3d collider tutorials

preview_player
Показать описание
Unity destroy objects on collision 3d tutorials using on collider enter
#Unity #UnityTutorials #Collision
Рекомендации по теме
Комментарии
Автор

my objects are destroy when I play the game no with collision ._. why? sorry for my english 😅

karitog
Автор

Sir is there possible when 1 object is collide with another object the 1 object the size is increase and decrease
How can in creating this thing?

tarunkhat
Автор

how can i make it so only the top of my player could destroy an object?

panqake
Автор

how can dsetroy object when it hits all the other objects

syedaalena
Автор

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ImpactTrigger : MonoBehaviour
{
AudioSource source;

void Start()
{
source = GetComponent<AudioSource>();
}

private void OnCollisionEnter(Collision collision)
{
source.Play();
}

}

sourced-games