# How to set the camera so that just like a real human walking

**URL:** <https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280>\
**Category:** Questions\
**Created:** [September 27, 2022, 6:18am UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280 "2022-09-27T06:18:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digital\_Mimesis\_Lab](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/digital_mimesis_lab/32/26710_2.png) [@Digital\_Mimesis\_Lab](https://forum.babylonjs.com/u/Digital_Mimesis_Lab)\
**Post date:** [September 27, 2022, 6:18am UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/1 "2022-09-27T06:18:34Z")

</div>

How to set the camera so that just like a real human walking? I set the camera.ellipsoid to (0.5,1.8,0.5) to simulate a human with 1.8 meter tall, but nothing changed

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [September 27, 2022, 6:34am UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/2 "2022-09-27T06:34:36Z")

</div>

Probably this is because you also need to set up camera collisions - [Camera Collisions | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_collisions)

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [September 27, 2022, 9:44am UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/3 "2022-09-27T09:44:39Z")

</div>

I am also interested in this as I am about to implement my first first-person camera in my scene.  
Could you a bit more explicit when you say?

> [@Digital\_Mimesis\_Lab](#):
>
> just like a real human walking

What I understand from this and would may be also like to implement, is a camera slightly ‘wiggling’ when the character moves, to simulate the head slightly moving when walking. Is that what you are looking for? If so, as I said, I have no faen clue but would sure happily soak-up the answers from others 😀 😄 😉

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [September 28, 2022, 11:09am UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/4 "2022-09-28T11:09:01Z")

</div>

a playground or reproduction would be helpful as well.

(Obviously directed at OP 🙂 )

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [September 28, 2022, 12:04pm UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/5 "2022-09-28T12:04:27Z")

</div>

Here is “drunken camera” example, one may make more sober walk from it 🙂 - [Babylon.js Playground](https://playground.babylonjs.com/#2BPZFZ)

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 28, 2022, 1:06pm UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/6 "2022-09-28T13:06:08Z")

</div>

A game where you’re a drunk person just trying to get home without tripping would be kinda funny 🤣

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [September 28, 2022, 1:50pm UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/7 "2022-09-28T13:50:48Z")

</div>

Sadly, I cannot allow drunk people to enter my space museum. By any means, the way things are going, alcohol will probably be prohibited by this time in the future (and we will all be eating just dehydrated vegan food made from synthetic proteins elaborated by the biotech industry). Oh, how I’m eager to get there 😁 😉 Evolution, they say? 😁 😆

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 28, 2022, 3:26pm UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/8 "2022-09-28T15:26:54Z")

</div>

To be fair, well made vegan food is very delicious 😋

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [September 28, 2022, 4:55pm UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/9 "2022-09-28T16:55:56Z")

</div>

Are we talking about food now?

> [@carolhmj](#):
>
> well made vegan food is very delicious

Totally agree! But… Cheese…

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [September 28, 2022, 10:44pm UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/10 "2022-09-28T22:44:40Z")

</div>

Sorry to get back to the walking here but is the idea to have some kind of walking/bobbing animation when moving or just to be able to move with the camera at a height representative of a 1.8m human?

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [October 6, 2022, 12:04pm UTC](https://forum.babylonjs.com/t/how-to-set-the-camera-so-that-just-like-a-real-human-walking/34280/11 "2022-10-06T12:04:54Z")

</div>

> [@PolygonalSun](#):
>
> the idea to have some kind of walking/bobbing animation when moving

I don’t know for the poster (since he did not reply) but for what I’m about to implement in my scene, yes, it was my idea (at least, initially).

I wanted just a soft effect but thinking of it further, it actually essentially is when the character/user (in first person camera) takes a step (on a stair) or enters a small room (like an elevator). Situations where we naturally compensate or adapt our point of view. When we walk up or down stairs, we naturally compensate with the eye the change in height while taking the step. Same, when we enter a small room (like a closet or an elevator) we instinctively quickly check on the right and left. This is what I wanted to try reproduce somehow. But then in case of stairs, I was thinking afterwards that may be the best would be not to use the stairs as colliders and compensate with the camera. Instead, create a new collider with a slope. Any thoughts and experience on this would certainly be appreciated 😃  
I might just open a new topic for it when I get there (since this wasn’t my post).
