Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Getting the impulse force from a collision? (Ammo) #188

Open
vtrykoz opened this issue Mar 18, 2021 · 1 comment
Open

Getting the impulse force from a collision? (Ammo) #188

vtrykoz opened this issue Mar 18, 2021 · 1 comment

Comments

@vtrykoz
Copy link

vtrykoz commented Mar 18, 2021

How to get collision impact force from a-frame using ammo.js driver? I'm trying to bind sound volume to collision force. And as I can see, currently collidestart and collideend only provides source and target entities, not much info about collision.

@mackbjon
Copy link

Assuming you're checking for collision on every tick, could you store velocity vector for objects on every tick and just calculate from momentum on tick before collision? Though there might be easier/more intuitive way to accomplish this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants