Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
cannon-es
Advanced tools
Readme
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 11,666 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.