Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anuraghazra/Atomic.js
/ functions
Functions
49 in github.com/anuraghazra/Atomic.js
⨍
Functions
49
◇
Types & classes
10
↓ 16 callers
Function
i
(s)
tests/as_nodejs_module/main.build.js:1
↓ 8 callers
Method
drag
* @method Body.drag()
src/Body.js:163
↓ 7 callers
Method
frame
* requestAnimationFrame * @method Atomic.frame() * @param {function} func * @param {string} color
src/Atomic.js:217
↓ 7 callers
Method
render
* draw all bodies * @method Atomic.render()
src/Atomic.js:359
↓ 7 callers
Method
update
* @method Atomic.update() * Solve All Collision And Update
src/Atomic.js:345
↓ 6 callers
Method
calculateCenter
* @method Body.calculateCenter() * calculateCenter and bounding box
src/Body.js:88
↓ 4 callers
Method
addConstraint
* @method Atomic.addConstraint() * @param {number} i * @param {number} j * @param {boolean} edge
src/Atomic.js:206
↓ 4 callers
Method
dot
(a, b)
src/Body.js:113
↓ 4 callers
Method
project
* get the vector projection on to normal (n) * @method Body.Project() * @param {vector} n
src/Body.js:112
↓ 4 callers
Method
showFps
(option)
src/Atomic.js:386
↓ 3 callers
Method
integrate
* @method Atomic.integrate() * updates vertices
src/Atomic.js:293
↓ 3 callers
Method
resolve
* Resolve Collision based on SAT Given Collision Information * @method Collision.resolve() * @param {float} friction
src/Collision.js:99
↓ 2 callers
Method
SAT
* SAT Collision Detection * @method Collision.SAT * @param {Body} B0 * @param {Body} B1
src/Collision.js:27
↓ 2 callers
Method
aabb
(B0, B1)
src/Collision.js:139
↓ 2 callers
Function
applyThrust
(value)
examples/car/index.js:29
↓ 2 callers
Method
boundary
* @method Vertex.boundary() * Handle Boundry Collision
src/Vertex.js:37
↓ 2 callers
Method
checkAABB
(B1, B0)
src/Collision.js:88
↓ 2 callers
Method
clear
* Clear the canvas * @method Atomic.clear() * @param {string} color
src/Atomic.js:231
↓ 2 callers
Method
createPoly
* @method Atomic.createPoly() * Creates a polygon * @param {array|string} vert * @param {array} cons optional (calculates cneter point) *
src/Atomic.js:246
↓ 2 callers
Method
draw
* draw body * @method Body.draw() * @param {*} ctx
src/Body.js:139
↓ 2 callers
Function
e
(t,e)
tests/as_nodejs_module/main.build.js:1
↓ 2 callers
Method
solve
* @method Constraint.solve() * Solve Constrints
src/Constraint.js:22
↓ 2 callers
Method
updateBoundary
* @method Atomic.updateBoundary() * handles all bodies boundary collisions
src/Atomic.js:314
↓ 2 callers
Method
updateCollision
* @method Atomic.updateCollision() * Batch Update Collisions
src/Atomic.js:324
↓ 2 callers
Method
updateConstraints
* @method Atomic.updateConstraints() * solves all verlet physics
src/Atomic.js:303
↓ 1 callers
Function
animate
()
index.js:131
↓ 1 callers
Function
animate
()
tests/as_nodejs_module/main.js:41
↓ 1 callers
Function
animate
()
examples/stacking/index.js:40
↓ 1 callers
Function
animate
()
examples/chain_contraints/chain_constraint.js:39
↓ 1 callers
Function
animate
()
examples/car/index.js:59
↓ 1 callers
Function
animate
()
examples/custom_models/index.js:17
↓ 1 callers
Method
drag
* @method Atomic.drag() * drag Poly Objects
src/Atomic.js:372
↓ 1 callers
Function
drawPoly
()
index.js:53
↓ 1 callers
Function
init
()
index.js:8
↓ 1 callers
Function
init
()
tests/as_nodejs_module/main.js:6
↓ 1 callers
Function
setup
()
examples/chain_contraints/chain_constraint.js:7
↓ 1 callers
Function
showDrawing
()
index.js:110
Function
Vector
* Vector.js v1.0.0 * @author Anurag Hazra * @borrows p5.Vector * @param {number} x * @param {number} y
src/Vector.js:8
Method
addVertex
* @method Atomic.addVertex() * @param {number} x * @param {number} y * @param {boolean} pinned
src/Atomic.js:190
Method
constructor
(id, width, height, gravity, friction, simIteration)
src/Atomic.js:23
Method
constructor
()
src/Collision.js:8
Method
constructor
(parent, vertex, pinned, opt)
src/Vertex.js:10
Method
constructor
(opt, engine)
src/Body.js:11
Method
constructor
(parent, v0, v1, edge)
src/Constraint.js:9
Method
drawFpsMeter
()
src/Atomic.js:426
Method
integrate
* @method Vertex.integrate() * Loop and update physics
src/Vertex.js:22
Function
l
(t,e,i,r,h,l)
tests/as_nodejs_module/main.build.js:1
Function
n
(t,e,i,n)
tests/as_nodejs_module/main.build.js:1
Function
r
(t,e)
tests/as_nodejs_module/main.build.js:1