# Sample of Physics

**URL:** <https://forum.babylonjs.com/t/sample-of-physics/9496>\
**Category:** Questions\
**Created:** [March 26, 2020, 1:47pm UTC](https://forum.babylonjs.com/t/sample-of-physics/9496 "2020-03-26T13:47:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johny\_Mickey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johny_mickey/32/24948_2.png) [@Johny\_Mickey](https://forum.babylonjs.com/u/Johny_Mickey)\
**Post date:** [March 26, 2020, 1:47pm UTC](https://forum.babylonjs.com/t/sample-of-physics/9496/1 "2020-03-26T13:47:20Z")

</div>

Hello, how to use physics of babylon.js to do the following simple example. We have a simple scene, the object “plane” set as ground. Another object - box stands still on the object “plane” - without movements, weighs 1kg. A second box weighs 5kg and moves at 20km / h. Two mentioned boxes collide. Is it possible to simulate this? Somehow? I searched the documentation, but did not understand if it is possible and how to create this?

The second question about what is the best way to make a box that moves is invisible to the camera, yet is involved in a collision?

---

<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:** [March 26, 2020, 3:21pm UTC](https://forum.babylonjs.com/t/sample-of-physics/9496/2 "2020-03-26T15:21:56Z")

</div>

Summoning @Cedric

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [March 26, 2020, 3:37pm UTC](https://forum.babylonjs.com/t/sample-of-physics/9496/3 "2020-03-26T15:37:23Z")

</div>

Hi @Johny_Mickey

Something like this ?  
[https://playground.babylonjs.com/#RFXCS6](https://playground.babylonjs.com/#RFXCS6)  
I set the velocity to a lower value to see the effect more clearly.  
An invisible box will push the box on the left after a couple seconds. Uncomment line 32 to see the mesh.

---

<div class="post-metadata">

**Author:** ![Johny\_Mickey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johny_mickey/32/24948_2.png) [@Johny\_Mickey](https://forum.babylonjs.com/u/Johny_Mickey)\
**Post date:** [March 26, 2020, 6:22pm UTC](https://forum.babylonjs.com/t/sample-of-physics/9496/4 "2020-03-26T18:22:46Z")

</div>

Thank you very much for your sample! Only one thing is unclear to me, How to implement a real box speed in the system, for example 20km / h.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [March 26, 2020, 6:26pm UTC](https://forum.babylonjs.com/t/sample-of-physics/9496/5 "2020-03-26T18:26:35Z")

</div>

it depends on your unit. If you are consistent and for you, 1 unit = 1 meter. then set the velocity to 20000m/h == 5.5m/s  
setvelocity accepts world units per seconds

---

<div class="post-metadata">

**Author:** ![DJousto](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/djousto/32/7034_2.png) [@DJousto](https://forum.babylonjs.com/u/DJousto)\
**Post date:** [March 26, 2020, 6:55pm UTC](https://forum.babylonjs.com/t/sample-of-physics/9496/6 "2020-03-26T18:55:08Z")

</div>

hello, you can take a look at my playground, it seems close to what you want to do (except units) : [https://playground.babylonjs.com/#RGNDK2](https://playground.babylonjs.com/#RGNDK2)
