hannojg / react-native-box2d

JSI port of the Box2D physics engine for React Native.
MIT License
61 stars 3 forks source link

Add linear damping #2

Closed tomekzaw closed 1 year ago

tomekzaw commented 1 year ago

This PR exposes SetLinearDamping method.

Example usage:

const body = world.CreateBody(bodyDef);
body.CreateFixture(fixtureDef);
body.SetLinearDamping(0.5);