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

Use air friction from matter js #1

Closed
EmilienLeroy opened this issue Mar 31, 2020 · 0 comments
Closed

Use air friction from matter js #1

EmilienLeroy opened this issue Mar 31, 2020 · 0 comments

Comments

@EmilienLeroy
Copy link
Owner

Here use frictionAir :

return Physics.Body(geometry);

And remove global gravity :

const physic = useNewComponent(() => Physics.Engine({gravity: new Vector(0, 0.1)}));

@EmilienLeroy EmilienLeroy changed the title Use air fiction from matter js Use air friction from matter js Mar 31, 2020
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

1 participant