
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
p2 add-on for bodies that detect collision but have no collision response.
A ghost body will not bounce off of or have friction with other bodies. You can still react to a ghost overlapping other bodies via World's beginContact event.
Ghost bodies fire events when other bodies enter/exit them.
Enables a World to have ghost bodies. Call this once per World.
Disables ghost bodies in a World.
Turn on ghost mode for a Body. Call this once on every Body that needs ghost treatment.
Turn off ghost mode for a Body.
See if Body is a ghost.
Events are fired by ghost bodies using p2's built-in event system.
Fired when a body enters a ghost body.
ghost.on('bodyEntered', function(event) {
// number of bodies currently overlapping ghost
event.count
// body that entered
event.causedBy
});
Fired when a body enters a ghost body that was empty.
ghost.on('populated', function(event) {
// number of bodies currently overlapping ghost
event.count
// body that entered
event.causedBy
});
Fired when a body leaves a ghost body.
ghost.on('bodyExited', function(event) {
// number of bodies currently overlapping ghost
event.count
// body that exited
event.causedBy
});
Fired when the last body leaves a ghost body.
ghost.on('emptied', function(event) {
// number of bodies currently overlapping ghost
event.count
// body that exited
event.causedBy
});
npm install ghost-body
MIT
FAQs
p2 add-on for bodies that detect collision but have no collision response.
The npm package ghost-body receives a total of 4 weekly downloads. As such, ghost-body popularity was classified as not popular.
We found that ghost-body 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.