Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sopiro/Physics
/ functions
Functions
685 in github.com/Sopiro/Physics
⨍
Functions
685
◇
Types & classes
163
↓ 206 callers
Method
register
(r, passTest = false)
out/world.js:138
↓ 206 callers
Method
register
(r: Registrable, passTest: boolean = false)
src/world.ts:193
↓ 109 callers
Method
add
(v)
out/math.js:54
↓ 109 callers
Method
add
(v: Vector2)
src/math.ts:88
↓ 71 callers
Function
updateSetting
(id, content)
out/settings.js:264
↓ 70 callers
Method
mulVector2
(right, z)
out/math.js:373
↓ 70 callers
Method
mulVector2
(right: Vector2, z: number)
src/math.ts:553
↓ 66 callers
Method
sub
(v)
out/math.js:57
↓ 66 callers
Method
sub
(v: Vector2)
src/math.ts:93
↓ 58 callers
Method
cross
(v)
out/math.js:51
↓ 58 callers
Method
cross
(v: Vector2)
src/math.ts:83
↓ 49 callers
Method
mul
(v)
out/math.js:63
↓ 49 callers
Method
mul
(v: number)
src/math.ts:103
↓ 36 callers
Method
dot
(v)
out/math.js:48
↓ 36 callers
Method
dot
(v: Vector2)
src/math.ts:78
↓ 28 callers
Method
toFixed
(limit = 1e-13)
out/math.js:179
↓ 28 callers
Method
toFixed
(limit = 1e-13)
src/math.ts:290
↓ 27 callers
Method
log
(content, line = 0)
out/renderer.js:30
↓ 27 callers
Method
log
(content: any, line: number = 0)
src/renderer.ts:51
↓ 26 callers
Function
union
(b1, b2)
out/aabb.js:61
↓ 20 callers
Method
awake
()
out/rigidbody.js:40
↓ 19 callers
Method
drawCircleV
(v, radius = 0.05, filled = false)
out/renderer.js:55
↓ 19 callers
Method
drawCircleV
(v: Vector2, radius: number = 0.05, filled: boolean = false)
src/renderer.ts:90
↓ 17 callers
Method
copy
()
out/timer.js:34
↓ 17 callers
Method
copy
()
src/timer.ts:46
↓ 17 callers
Method
normalized
()
out/math.js:35
↓ 17 callers
Method
normalized
()
src/math.ts:58
↓ 16 callers
Method
drawLineV
(v0, v1, lineWidth = 1, strokeStyle = "#000000")
out/renderer.js:70
↓ 16 callers
Method
drawLineV
(v0: Vector2, v1: Vector2, lineWidth: number = 1, strokeStyle: string = "#000000")
src/renderer.ts:112
↓ 16 callers
Method
inverted
()
out/math.js:25
↓ 16 callers
Method
inverted
()
src/math.ts:42
↓ 13 callers
Method
mulMatrix
(right)
out/math.js:268
↓ 13 callers
Method
mulMatrix
(right: Matrix2)
src/math.ts:420
↓ 12 callers
Function
detectCollisionAABB
(a, b)
out/aabb.js:76
↓ 10 callers
Function
createAABB
(body, margin = 0.0)
out/aabb.js:32
↓ 10 callers
Method
translate
(x, y)
out/math.js:402
↓ 10 callers
Method
translate
(x: number, y: number)
src/math.ts:598
↓ 9 callers
Function
updateSetting
(id: string, content?: any)
src/settings.ts:328
↓ 8 callers
Function
getUV
(a, b, p)
out/util.js:11
↓ 8 callers
Function
lerpVector
(a, b, uv)
out/util.js:19
↓ 8 callers
Method
setFDM
(frequency = this._frequency, dampingRatio = this._dampingRatio, jointMass = this._jointMass)
out/joint.js:49
↓ 7 callers
Function
csoSupport
(b1, b2, dir)
out/detection.js:37
↓ 7 callers
Function
csoSupport
(b1: RigidBody, b2: RigidBody, dir: Vector2)
src/detection.ts:54
↓ 7 callers
Method
drawLine
(x0, y0, x1, y1, lineWidth = 1, strokeStyle = "#000000")
out/renderer.js:67
↓ 7 callers
Method
drawLine
(x0: number, y0: number, x1: number, y1: number, lineWidth = 1, strokeStyle: string = "#000000")
src/renderer.ts:107
↓ 7 callers
Function
fix
(aabb)
out/aabb.js:14
↓ 6 callers
Method
div
(v)
out/math.js:60
↓ 6 callers
Method
div
(v: number)
src/math.ts:98
↓ 6 callers
Method
mulVector
(right)
out/math.js:276
↓ 6 callers
Method
mulVector
(right: Vector2)
src/math.ts:433
↓ 6 callers
Method
unregister
(id, isJoint = false)
out/world.js:156
↓ 6 callers
Method
unregister
(id: number, isJoint: boolean = false)
src/world.ts:219
↓ 5 callers
Method
addVertex
(vertex)
out/simplex.js:78
↓ 5 callers
Method
addVertex
(vertex: Vector2)
src/simplex.ts:106
↓ 5 callers
Method
clear
()
out/math.js:7
↓ 5 callers
Method
clear
()
src/math.ts:14
↓ 4 callers
Function
containsAABB
(container, target)
out/aabb.js:83
↓ 4 callers
Function
detectCollision
(a, b)
out/detection.js:186
↓ 4 callers
Method
initDemo
()
out/game.js:51
↓ 4 callers
Method
initDemo
()
src/game.ts:77
↓ 4 callers
Method
inverted
()
out/math.js:303
↓ 4 callers
Method
inverted
()
src/math.ts:474
↓ 4 callers
Function
testPointInside
(aabb, point)
out/aabb.js:69
↓ 3 callers
Method
clear
()
out/island.js:112
↓ 3 callers
Method
clear
()
src/island.ts:165
↓ 3 callers
Function
clipEdge
(edge, p, dir, remove = false)
out/detection.js:131
↓ 3 callers
Function
clipEdge
(edge: Edge, p: Vector2, dir: Vector2, remove: boolean = false)
src/detection.ts:206
↓ 3 callers
Method
drawAABB
(aabb, lineWidth = 1, strokeStyle = "#000000")
out/renderer.js:164
↓ 3 callers
Method
drawAABB
(aabb: AABB, lineWidth = 1, strokeStyle: string = "#000000")
src/renderer.ts:240
↓ 3 callers
Method
equals
(v)
out/math.js:66
↓ 3 callers
Method
equals
(v: Vector2)
src/math.ts:108
↓ 3 callers
Method
invert
()
out/math.js:21
↓ 3 callers
Method
invert
()
src/math.ts:36
↓ 3 callers
Method
mulMatrix
(right)
out/math.js:360
↓ 3 callers
Method
mulMatrix
(right)
out/math.js:498
↓ 3 callers
Method
mulMatrix
(right: Matrix3)
src/math.ts:534
↓ 3 callers
Method
mulMatrix
(right: Matrix4)
src/math.ts:680
↓ 3 callers
Method
prepare
(normalContacts)
out/contact.js:112
↓ 3 callers
Method
prepare
(normalContacts: ContactSolver[])
src/contact.ts:187
↓ 3 callers
Method
queryPoint
(point)
out/world.js:207
↓ 3 callers
Method
queryPoint
(point: Vector2)
src/world.ts:295
↓ 3 callers
Method
solve
()
out/contact.js:142
↓ 3 callers
Method
solve
()
src/contact.ts:227
↓ 3 callers
Function
support
(b, dir)
out/detection.js:11
↓ 3 callers
Function
support
(b: RigidBody, dir: Vector2)
src/detection.ts:19
↓ 2 callers
Method
addJoint
(joint)
out/island.js:108
↓ 2 callers
Method
addJoint
(joint: Joint)
src/island.ts:159
↓ 2 callers
Method
addPassTestPair
(bodyA, bodyB)
out/world.js:234
↓ 2 callers
Method
addPassTestPair
(bodyA: RigidBody, bodyB: RigidBody)
src/world.ts:338
↓ 2 callers
Method
applyImpulse
(lambda)
out/line.js:61
↓ 2 callers
Method
applyImpulse
(lambda)
out/maxdistance.js:54
↓ 2 callers
Method
applyImpulse
(lambda)
out/grab.js:44
↓ 2 callers
Method
applyImpulse
(lambda)
out/prismatic.js:72
↓ 2 callers
Method
applyImpulse
(lambda)
out/revolute.js:50
↓ 2 callers
Method
applyImpulse
(lambda)
out/distance.js:48
↓ 2 callers
Method
applyImpulse
(lambda)
out/angle.js:35
↓ 2 callers
Method
applyImpulse
(lambda0, lambda1)
out/motor.js:83
↓ 2 callers
Method
applyImpulse
(lambda)
out/weld.js:63
↓ 2 callers
Method
applyImpulse
(lambda)
out/contact.js:98
↓ 2 callers
Method
applyImpulse
(lambda: Vector2)
src/grab.ts:77
next →
1–100 of 685, ranked by callers