Hi everybody!
I’ve stuck with big problem where I want to make my character controller to move with animated moving platform.
What I want to do is when my charactercontroller lands on moving lotuses on the lake, I want it to go with them - but atm it just stays where it is and lotuses moves away, resulting my character just fall into the lake.
The movement of platform is done by animation via 3dMax.
and the hierachy of these moving platforms are like below
Lotus : the parent gameobjects below
- lotus 1 (child)
- lotus 2 (child)
- lotus 3 (child) and so on.
The gameobject “Lotus” only contains animation that moves its child lotuses. No colliders, no scripts, meshes, nothing. (It’s just a game object that groups the child lotuses)
child lotuses (lotus 1, lotus 2) has mesh filter, mesh renderer and mesh collider. (but has no animation attached)
Although these child lotuses move well around the lake, effected by animation attached to their parent object, “Lotus”.
my character controller moves by typical wasd movemements but its rotation is done by mouse movements.
and oh - it has no rigidbody attached on it.
I’ve been searching around for solution which can be well suited on my project, but most of other people’s platforms were moved by script, not the animation. Some were done by animation but did not had similar hierachy as mine.
So could anyone help me? ;-;?