The avatar stands on ground when not moving. But he falls down half a body when playing animation. The same thing applies in Prefab and App. How do I make him always stand on the ground? In the example the Ogre mesh gets adjusted by y=48. But how do I know this value? Do I have to try and estimate this by eye for every avatar I use?
Avatar centered on belly during animationSoftware: Away3D 4.x |
||
|
||
Ankur, Jr. Member
Posted: 03 February 2013 06:22 PM Total Posts: 43 [ # 1 ] In your model, make sure that the pivot of the mesh you are animating is centred at worlds 0,0,0. As for the position value, cant you just trace (avatarMesh.x) trace(avatarMesh.y) and trace(avatarMesh.z); ._. |
||
chocobo_green, Jr. Member
Posted: 04 February 2013 06:58 AM Total Posts: 38 [ # 2 ] Thanks for the instruction! It’s helpful. But is there a way to make the avatar just stand on ground by default? I can do trace during development. But when it comes to real application, there should not be such process. There could be many avatars created by Artists and they should be imported and used without bothering a programmer. |