- Home /
Question by
OshakieGittens61 · Jul 08, 2016 at 12:23 PM ·
colliderplatformturning
Ethan controller rotation and collider problems on moving platform
hey, so I'm making this third person platform game which involves moving platforms. To this movable platform I have attached a script (seen below)which allows my character to be a parent of platform; which is duplicated so i can set one as a trigger raised 0.8 above the other. But whenever my character jumps on the platforms and i try to turn, it goes into the airborne animation stays like that: link text. Click the link to see the problem:
![using UnityEngine;
using System.Collections;
using System;
public class StandPlaform : MonoBehaviour {
void OnTriggerEnter(Collider col)
{
col.transform.parent = gameObject.transform;
}
void OnTriggerExit(Collider col)
{
col.transform.parent = null;
}
}][2]
[2]: /storage/temp/73603-platf.png
platf.png
(336.6 kB)
Comment
Your answer
