
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
simple-physics-engine
Advanced tools
A library containing algorithms & abstract classes for building animations/games, regardless of the platform.
A library containing algorithms & abstract classes for building animations/games, regardless of the platform.
This package is currently being developed and is not finished or tested.
Using the physics engine and adding a Bird character
import { AbstractPhysics, RigidBody } from 'simple-physics-engine'
class Bird extends RigidBody {
constructor(pos, options) {
super(pos, options)
// other constructor logic
}
// other extensions
}
class Physics extends AbstractPhysics {
// implement abstract init() method
function init() {
addCharacter(bird)
// other init logic
}
// implement abstract update() method
function update(dt) {
// your update logic
}
// other extensions
}
All of these objects are abstract classes and are meant to be inherited from. For example, you could create a "Car" class by inheriting from "Agent"
TODO: Add picture of hierarchy
| Name | Description |
|---|---|
| Spatial | Root of all objects, just holds a position |
| CollisionObject | Base collision object, holds some type of extent to check for collisions |
| StaticBody | An extension of CollisionObject that is incapable of moving |
| RigidBody | An extension of CollisionObject that supports movement and can receive forces |
| Agent | An extension of RigidBody that holds a goal and a path towards that goal |
FAQs
A library containing algorithms & abstract classes for building animations/games, regardless of the platform.
We found that simple-physics-engine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.