Hi, I’m using a very simple script to parent a object to a moving platform.
function OnTriggerEnter (other : Collider) {
other.transform.parent = transform;
}
function OnTriggerExit (other : Collider) {
other.transform.parent = null;
}
As far as I can remember this worked before, but it has stopped doing so (I have upgraded to 3.3.something in the mean time).
It still parents the object, but it no longer un-parents it.
I’ve solved this by adding another trigger and splitting up the script in to two. But that is just an ugly hack.
Any thoughts anybody?