# How make the character's feet touch the gound?

**URL:** <https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741>\
**Category:** Questions\
**Created:** [May 11, 2020, 1:04pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741 "2020-05-11T13:04:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 11, 2020, 1:04pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/1 "2020-05-11T13:04:19Z")

</div>

Hi,  
I’ve been strugling against a wield thing: after loading mesh to my scene, I was just not able to let the character’s feet touch the ground plane.

when a character come from loading, it always put its position at point(0,0,0). so the character seems to be buried half in the gournd.

so , now I need to lift the character up above the ground .but how?  
some PG shows that a box can lift up by its size/2. that’s good . but how to deal with a mesh ? Is there a method to get he distance between the mesh’s feet and the ground?

the attached pictures show my sitution:

 ![piglet_feet_boundingBox_notalign](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/1/1457c8b76ecc157043578fccf4d4e91b68331ce6.png)  
when I drag the gltf in the sand box , it shows the bouding box are is not exactly encompose the role.

the attached picture here is when loading into my scene, the character is “buried” .

 ![how to make avator's feet touch the ground](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/a9eaf3c3b980233b6936e941e87d4507aa547612.jpeg)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 11, 2020, 3:48pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/2 "2020-05-11T15:48:27Z")

</div>

Hello! you have 2 options::

- Edit your mesh in your DCC tools to move the pivot on his feet
- call the `mesh.setPivotMatrix()` API in Babylon.js

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 11, 2020, 4:56pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/3 "2020-05-11T16:56:17Z")

</div>

really thanks , I’ll try both options

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 12, 2020, 11:11am UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/4 "2020-05-12T11:11:17Z")

</div>

I open my 3ds max 2018 and checked the bounding boxes of these characters, it seems the bounding boxes are exactly correct. could it be a bug of Babylonjs 3ds exporter plugin ?

 ![zz-boundingBox](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/c/c04667be30e84195f57bf116d43c0f7a65f64bee.png) ![bj00-boundingBox](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/e/e2a6dde9746674d91944323ca658736580d51257.png) [bj00.zip](https://forum.babylonjs.com/uploads/short-url/byZjnhnDYKtbfJbTBXiaMaBTtwE.zip) (1.7 MB) [zz00.zip](https://forum.babylonjs.com/uploads/short-url/sJQ4ltbGhbq143qCE0OuqWIIKDy.zip) (1.5 MB)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 12, 2020, 3:37pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/5 "2020-05-12T15:37:31Z")

</div>

Pinging @drigax 🙂

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 12, 2020, 7:45pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/6 "2020-05-12T19:45:12Z")

</div>

Off the top of my head: Max doesn’t make it easy to change the origin of a mesh, Most likely the characters are offset from the ground in your max scene, and may need a dummy node so that the offset is preserved when placed on ground… I’ll have to take a closer look when I get some time in a few hours.

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 15, 2020, 12:42am UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/7 "2020-05-15T00:42:03Z")

</div>

@moxierichard

Looks like that’s the case. your character’s root bone is not at the scene root, so the offset gets lost after you set it to the origin. You can fix this by adding an additional root bone that is at the origin, and parenting the rest of your rig to that:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/0/011d5388eef45a14d6cd8bd7ca80d97225cd5f49.png)

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 18, 2020, 12:17pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/8 "2020-05-18T12:17:00Z")

</div>

thanks very much.  
I’m not sure I really understand what you mean. Is it point(0,0,0) of what you said about Scene Root ? I checked babylons 3ds max exporter document that does not mention about this .  
so babylonjs 3ds max in fact supposes every model is positioned at (0,0,0) before exporting ,

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 18, 2020, 12:18pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/9 "2020-05-18T12:18:08Z")

</div>

currently I have 8 max with each the character has an animation . all of the animations are standing above the ground.

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 18, 2020, 12:22pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/10 "2020-05-18T12:22:03Z")

</div>

So I have to update every max files that I have to low down the center of the model,rather than the BIP001, to be at (0,0,0), do’n’t I ?  
Meanwhile, the BIP001(all animations are bound to skeletons which has the common father BIP001) needs to be low down as well?

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 18, 2020, 5:24pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/11 "2020-05-18T17:24:55Z")

</div>

The model appears to be in the proper position when exported, you can see by the bounding box in the sandbox. The issue is that our skeleton root is considered to be at 0,0,0 due to the schema. I’m looking at our exported glTF, it appears that our Bip001 bone is missing from the scene…this may be why we’re being teleported inside the origin…this Bip001 bone contains the offset from origin for the rest of the skeleton…

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 19, 2020, 4:27am UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/12 "2020-05-19T04:27:56Z")

</div>

Understood now.  
thanks a lot!

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 19, 2020, 5:57pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/13 "2020-05-19T17:57:22Z")

</div>

No problem. here’s the bug that I’m working on currently regarding this:

> <https://github.com/BabylonJS/Exporters/issues/823>
>
> Topic thread:
> https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/12
> Issue exists in 3dsMax exporter, where non-deforming skeleton root is missing from export. Bone and animations are not included in...

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 19, 2020, 11:35pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/14 "2020-05-19T23:35:09Z")

</div>

Fix should be available now, thanks for reporting!:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/7/74a79be109a7bdd4bf196f8e49730b3e02b7dd15.jpeg)

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 20, 2020, 10:32am UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/15 "2020-05-20T10:32:42Z")

</div>

thanks for your time and work!  
so I need to download the new babylon 3ds max exporter version? where ?

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 20, 2020, 12:15pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/16 "2020-05-20T12:15:44Z")

</div>

Hi, Drigax:  
one more question about exporting animation groups.  
I have a model role and 243 frames of animation to show his actions , and already grouped these frames into different animation groups( including idle,jog,kick,fall,strike,push ) in order to export as a gltf file and to finally load into my scene.  
where I performs these animations in 3ds Max, it seems everything is OK. so I exported these to gltf using the Babylon 3ds Max exporter.

But the exporting result is not satisfied, when I review the export output in the online SandBox, I found that only the animGrp of idle and jog are nomal.But other animgroups, such as kick, fall, push and strike , looks wierd. The common problems are that the legs are floating in air ,waving, without a landing point…looks really funny. Here I list the max files, and some videos for your reference, I need your help. any reply will be really appreciated.Uploading: 3ds Max-animGrp-animGrp-kick-from 48 to 78.mp4…

 ![animationGroup-from 3ds Max 2018 to GLTF-01](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/b/b970557250f6bc760048ce2c0aacf102de7281d5.png) ![animationGroup-from 3ds Max 2018 to GLTF-02](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/d/db177c3aac31494191090feedf0244c6380baf21.png) 

[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/96679cb218307ddc4898683bce7299779ba18c9e.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/96679cb218307ddc4898683bce7299779ba18c9e.mp4)
 [role-zz-3ds max.zip](https://forum.babylonjs.com/uploads/short-url/2e6k24gE3heGKMkS4fuG2qJXdHV.zip) (1.5 MB) 
[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/9408e2c51012bde08c5af253f214addf74eaad09.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/9408e2c51012bde08c5af253f214addf74eaad09.mp4)
 
[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/7/7424713e8a48452641a04e78c9964f1fec82ffaf.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/7/7424713e8a48452641a04e78c9964f1fec82ffaf.mp4)
 
[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/35957995e0c9d6d10eddc8e9f2bd7f5183f2fa01.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/35957995e0c9d6d10eddc8e9f2bd7f5183f2fa01.mp4)
 
[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/57733f9dd0ff1a12ff5e8a59735227c1c16dfd5b.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/57733f9dd0ff1a12ff5e8a59735227c1c16dfd5b.mp4)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 20, 2020, 12:41pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/17 "2020-05-20T12:41:33Z")

</div>

This character is beautifull !!! @Drigax I count on you cause I really want to try out what @moxierichard is building 🙂

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 20, 2020, 1:26pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/18 "2020-05-20T13:26:35Z")

</div>

@moxierichard you can install the latest exporter by following these instructions. We have an installer program you can use to install the exporter in one click:

[https://doc.babylonjs.com/resources/3dsmax#how-to-install-the-3ds-max-plugin](https://doc.babylonjs.com/resources/3dsmax#how-to-install-the-3ds-max-plugin)

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 20, 2020, 2:10pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/19 "2020-05-20T14:10:31Z")

</div>

Can you reupload the max file? this latest one only has idle and run animations, no punch or kick… 🤔

---

<div class="post-metadata">

**Author:** ![moxierichard](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@moxierichard](https://forum.babylonjs.com/u/moxierichard)\
**Post date:** [May 20, 2020, 2:16pm UTC](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741/20 "2020-05-20T14:16:48Z")

</div>

OK, I will send you now[zz-copy.zip](https://forum.babylonjs.com/uploads/short-url/v3FsAojbFSwRegRyegIhL7jwAUB.zip) (303.9 KB)  
and thanks for your 3ds exporter which can export animation groups settings so anyone can reload these animation group settings easily. [zz\_animGrp\_all.zip](https://forum.babylonjs.com/uploads/short-url/dKH3XdktqlSDBXnrrw6lHpCyk1N.zip) (3.5 KB)

[Next page](https://forum.babylonjs.com/t/how-make-the-characters-feet-touch-the-gound/10741.md?page=2)
