- Home /
Char moves along moving platform, but gets stuck.
In first term, i'd like to say hello to everyone. Please excuse my english, since it's not my native language (original post was in spanish)
I've been building a platform game, to start testing different features.
At this moment, i'm working on a moving platform which describes some kinf of circle over a wall. Character is supposed jump on it to access next platform.
The point is that i'm trying to be able to stand over the platform without falling while it moves. I tried to set character coords according on platform's, but my problem now is that when i jump on it, i get stucked because char coords will allways be platform's.
//This is inside a "OnTriggerStay"
> if(hit.gameObject.tag == "plataformaGiratoria")
> {
> var coordPlataforma:posicionPlataforma = GetComponent("posicionPlataforma");
> var coord_x:float = coordPlataforma._x;
> var coord_y:float = coordPlataforma._y;
> var coord_z:float = coordPlataforma._z;
> transform.position= Vector3(coord_x, coord_y-4, coord_z);
> }
Also, i'd like to ask about another issue. As far as i know, when a collider becomes trigger, object is not "solid" anymore, so that's what i do...(see picture)
Is that the right way to do it?
Only thing remains me to say is Thanksssssssss a lot for ur help.
$$anonymous$$ost of the community is English speaking, it would be polite for everyone else to play by the same rules. But i accepted this question because it took you some time to create. Editing it in English would be the best you could do.