Public
Edited
Feb 26
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
rotateWithAccSys = (env, ents) => {
for (const ent of ents) {
if (ent.angularAcceleration !== null && ent.rotateWithAcc) {
ent.angularAcceleration = ent.acceleration[ent.rotateWithAcc];
}
}
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {
// commons
vec2,
MathUtils,
removeZeroError,
handleMouseEvents,
random,
plotFn,
simplex,
noise1D,
PI,
TWO_PI,
HALF_PI,
KeyboardCapturer,
justCanvas,
// simple ecs-based simulation
sim,
entity,
position,
graphics,
circle,
sprite,
rect,
basicMover,
movement,
force,
noiseAcc,
noiseAcceleration,
globalForces,
angularMovement,
angularVelocity,
angularAcceleration,
rotateToPointerSys,
rotateToPointer,
rotateWithDirection,
rotation,
testCollisions,
collisions,
entityDragging,
draggable,
clampAngularVelocity,
overflowWrap,
overflowKill,
killOnStageExit,
trailRenderer,
renderer,
stateDump,
tag,
debug,
trail
} from "@ajur/the-nature-of-code-tools"
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more