- Home /
Character falling through moving object using iTween
I everyone! I know that there's some questions like this one, but they didn't seem to quite help me out.
Well, I'm working on a remake of one of my old platform games, though I solved it back then by making my character (a simple ball) a child to the obstacle when it hits it's colliderbox. And also the other way around when it left the colliderbox it went back to "normal".
The test obstacle I'm using right now is a 6x2x100 box. With a iTween script attached to it:
iTween.moveTo(gameObject,{"y":20, "time":2, "loopType":"pingPong"});
Hope my question is clear enough to you guys. In advance Thanks
I'm sorry that i didn't make myself clear enough. $$anonymous$$y problem is that if I try to jump, with my character, onto a an object that is moving up and down, I will fall through it. The weird thing is that when I'm on the object I don't fall straight through it, it behaves like it's some kind of jelly, that I slide through. And if I move, it will take me longer time to fall all the way through?
Answer by pixelplacement · Sep 11, 2010 at 05:34 AM
There's a new example that shows how you can pull this off on the examples page. Hope it helps! Take a look here!
Any suggestions how to apply your example to an object with a Character Controller ins$$anonymous$$d of a RigidBody?