Hey guys i need some help
i need to make to Cubes stick to each other when they collide.
what do i do im a little lost
Thanks in advance
Hey guys i need some help
i need to make to Cubes stick to each other when they collide.
what do i do im a little lost
Thanks in advance
You could set the parent of one cube to the other cube when they collide.
Like this
void OnCollisionEnter(Collision c)
{
c.collider.transform.parent = transform;
}