forge2d icon indicating copy to clipboard operation
forge2d copied to clipboard

A Dart port of Box2D

Results 14 forge2d issues
Sort by recently updated
recently updated
newest added

# Description Removed `setGravity` and `getGravity`. ## Checklist - [X] The title of my PR starts with a [Conventional Commit] prefix (`fix:`, `feat:`, `docs:` etc). - [X] I have read...

# Description Removed `setEnabled` and `isEnabled`. Also updated documentation for the new getter and setter. ```dart // Before: contact.setEnabled(true); contact.isEnabled(); // true // After: contact.enabled = true; contact.enabled; // true...

# Description Removes `setBullet` and `isBuller` in favour of setter and getters. ```dart // Before: body.setBullet(true); body.isBullet(); // true // After: body.bullet = true; body.bullet; // true ``` ## Checklist...

# Description Removes `setRatio` and `getRatio` which were only wrapping around `ratio`. ```dart // Before gearJoint.setRatio(0.2) geatJoint.getRatio() // 0.2 // After geatJoint.ratio = 0.2 geatJoint.ratio; // 0.2 ``` ## Checklist...

# Description Changes: - Renamed `getMaxMotorForce` to `maxMotorForce` (now a Dart setter) - Renamed `setMaxMotorForce` to `maxMotorForce` (now a Dart getter) ```dart // Before: final joint = PrismaticJoint(jointDef); joint.setMaxMotorForce(20); //...

# Description Previously a vector was sent in to the methods, but it wasn't used. This PR makes that vector optional and makes use of it. ## Checklist - [x]...

These two methods in `common/rot.dart`: ```dart Vector2 getXAxis(Vector2 xAxis) => Vector2(cos, sin); Vector2 getYAxis(Vector2 yAxis) => Vector2(-sin, cos); ``` Take a `Vector2` but as far as I can see they...

# Description In #54 the friction was set to 0, but I realized it is much more useful to have it set to some value like 0.2 that gives a...

# Description Just adding the two missing arguments to `createFixtureFromShape`. ## Checklist - [x] The title of my PR starts with a [Conventional Commit] prefix (`fix:`, `feat:`, `docs:` etc). -...

If is possible to implement it, would be a great option... thanks to all the Devs involved

enhancement
help wanted