Posted: Sat Jan 31, 2009 4:52 am |
|
Quote: |
I have a skinned mesh called "char"
how can i script him to move from say
|
You need use char.setPositon() to change it's position in the FrameMove() function of User Script File.
In fact, using shot to move mesh is more easy than scripting.
Quote: |
as he moves he goes from "idle" to "walk" then "idle" at z0 X0 |
You can use char.setBonesAni() to change it's action.
Quote: |
I've done it by shots but it gets very confusing |
Create a shot for moving mesh and use PlayAnimate() to play the shot.
Quote: |
could the character react with surfaces? |
You need new a Movable Target to react with surfaces; then use char.setPosition(movtar.getPosition()) to set mesh to movtar's position.