Hi guys , i’m trying to make an object wich is my player (who have a caracter controller attached) a parent to an other object (wich is a trigger) on collision . I’m using this code but nothing hapens when i run my application :
thnx for replying Jesse , I’m using the OnCollisionEnter() as an indipendent script assigned to my player but what do you mean by ‘other.gameObject.tag == “mask”’ is evaluating to ‘true’. If you mean that my object is actually tagged ‘mask’ then yes .
Thnx everyone for replying , it does somehow works now that i used " OnTriggerEnter" and “childTransform.position = parentTransform.position;” but i still have a problem the child object do not follow the rotation of the parent object ??!! can somebody please tell me how can i solve that !!
Special thnx Mahmoud , we have always been brothers ,and we will always Be …