Hello, Ive been trying for two days to get my character to take on a platform as a parent(in order to move with it) but as I discovered today when trying to Debug to solve the problem, that the Collision isn’t being detected at all, here is my code:
private void OnCollisionEnter(Collision c)
{
if(c.transform.name == "Platy")
{
transform.parent = c.transform;
Debug.Log("YOURE DOIN IT!");
}
}
private void OnCollisionExit(Collision c)
{
if(c.transform.name == "Platy")
{
transform.parent = null;
}
}
The player has a CharacterController component and the platform has a box collider, anyone have any suggestions/ideas?