lo-th / Oimo.js

Lightweight 3d physics engine for javascript
http://lo-th.github.io/Oimo.js
MIT License
3.05k stars 301 forks source link

How to move a ridgidbody without them bumping up over eachother #94

Open dlawrence2060 opened 4 years ago

dlawrence2060 commented 4 years ago

Hi Im having an issue where I set my ridgidbodys linear velocity manually but when collisions happen they sometimes push over top of the other objects and then they look like they are floating.

I've tried increasing mass but doesn't seem to help either. Is there an easy way to lock the y axis on specific objects?

Botchal commented 3 years ago

@dlawrence2060 Hi, look at linearVelocity:Vec3 property to set moving vector https://skr.sh/v6bu5eRytkD?a