# Havok, bodies without rotation, angular velocity

Is it possible to create Havok bodies, which just “slide”.
So the idea is to have a physical body which does not tip over, but stays straight up.

Setting the velocity and damping does work but not well over time.

Or a more broader Question would be, Does Havok provide “Collision only” bodies, which can be assigned to a geometry? Well I read about body types and none of the three (static, dynamic, animated) would suit, isnt it?

The idea to design an object could also work like this (see PG below), but I would need some collision objects, which I can attach to the geometry.

Use the Arrow Keys to Move the pink body.

Best.
Werner

I’m refering to the doc: Physics V2 core concepts | Babylon.js Documentation
if your body is dynamic and compute its forces, then it’s dynamic.
if it collides/push other body but you control its position/rotation, then it’s animated.
if it doesn’t move at all, then it’s static.

To eliminate rotation/angular velocity, you can set angular velocity to 0, every frame.

1 Like

Thx. Yes re. bodies.
I set the angular to 0 but that doesnt work.

My guess would be to have a body that is hard to tip over. May be a rectangular box with a low height. Hopefully discrepancy between shape that you render and body that you use to simulate wont be too visible

Hi.
I was thinking of that as well, but generally it should be that diamond shape.
Basically the diamond with that behavior is against the idea of using physics ;), I know.
So maybe use a sphere…

Didnt try the Dynamic body yet, but I have a feeling that doesnt work either.
best.w.

I am thinking a cylinder with low height as body mesh might work better for you. Then Havoc can simulate behavior, similar to a hockey puck sliding on ice

But a puck wouldnt slide over slopes and tilt as well, wouldnt it?

If you give a body infinite inertia, the physics engine will be unable to rotate it, but it’ll otherwise behave physically:

node.physicsBody.setMassProperties( {inertia: new BABYLON.Vector3(0, 0, 0) } );

3 Likes

Interesting.
Will try that.
Thx!
Best. Werner

I have implemented this and with a compound body I get the desired result.

cursor keys to move
v for the physics body
space for reset

Thank you!

1 Like