Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This is a maintained fork of cannon.js, originally created by Stefan Hedman @schteppe.
It's a type-safe flatbundle (esm and cjs) which allows for tree shaking and usage in modern environments.
These minor changes and improvements were also made:
ConvexPolyhedron
constructor now accepts an object instead of a list of arguments. #6Cylinder
is now oriented on the Y axis. #30type
property of the Cylinder
is now equal to Shape.types.CYLINDER
. #59Body.applyImpulse()
and Body.applyForce()
are now relative to the center of the body instead of the center of the world 86b0444World.hasActiveBodies: boolean
which will be false when all physics bodies are sleeping. This allows for invalidating frames when physics aren't active for increased performance.World.frictionGravity: Vec3
which can be set to customize the force used when computing the friction between two colliding bodies. If undefined
, World.gravity
will be used. This property is useful to enable friction in zero gravity. This addresses issue #224 and follows the pattern established for p2.js.If instead you're using three.js in a React environment with react-three-fiber, check out use-cannon! It's a wrapper around cannon-es.
yarn add cannon-es
import { World } from 'cannon-es'
// ...
or, if you're using webpack, you can import it like this while still taking advantage of tree shaking:
import * as CANNON from 'cannon-es'
// ...
as any
assertions, and remove as any
type assertions wherever possibleFAQs
A lightweight 3D physics engine written in JavaScript.
The npm package cannon-es receives a total of 8,904 weekly downloads. As such, cannon-es popularity was classified as popular.
We found that cannon-es demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.