ok this is a very noobish question probably but no matter what i do i cant get collision to work in unity.
i'm using the Platform controller in unity and i made these platforms which when my character jumps on them they detect a collision and run a function. i want these platforms to be solid so using onTriggerEnter doesn't work because my player fall though them and i cant get on collisionEnter to work either.
Any help would be good.
ps ive look at all the unity collision help on their website and i still am having problems.
Make sure they are not marked as 'isTrigger' else they will not collide. onTriggerEnter and isTrigger are used for invisible triggers.
So removing the isTrigger should solve your issue, then add a mesh or a box collider to each platform. Then use onCollisionEnter to detect if something hit the platform.
answered Mar 19, 2011 at 09:00 AM