Register  |  FAQ  |  Search  |  Memberlist  |  Usergroups  |  Log in 
Reply to topic
 mesh movement 
nigec


Joined: 04 Jul 2007
Posts: 212
Reply with quote
I have a skinned mesh called "char"
how can i script him to move from say

z115.00 x11.00 to z0 x0 when hotspot_btn is clicked

as he moves he goes from "idle" to "walk" then "idle" at z0 X0

I've done it by shots but it gets very confusing

could the character react with surfaces?
View user's profile Send private message
  
Vincent


Joined: 25 Dec 2006
Posts: 296
Reply with quote
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.
View user's profile Send private message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic