Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/schteppe/cannon.js
/ functions
Functions
420 in github.com/schteppe/cannon.js
⨍
Functions
420
◇
Types & classes
0
↓ 1 callers
Function
getSuperProperty
(name)
libs/scenejs.js:11149
↓ 1 callers
Function
hueGradient
(elem)
libs/dat.gui.js:3266
↓ 1 callers
Function
inheritVertices
(geo)
libs/scenejs.js:12281
↓ 1 callers
Function
init
()
src/demo/Demo.js:446
↓ 1 callers
Function
makeErrorWrapper
(ctx, functionName)
libs/scenejs.js:5240
↓ 1 callers
Function
map
(v, i1, i2, o1, o2)
libs/dat.gui.js:1026
↓ 1 callers
Function
mightBeValidEnum
* Returns true if 'value' matches any WebGL enum, and the i'th parameter * of the WebGL function 'fname' is expected to be (any) enum. Does not * ch
libs/scenejs.js:5065
↓ 1 callers
Function
normal
* Face normal
libs/ConvexGeometry.js:123
↓ 1 callers
Function
numDecimals
(x)
libs/dat.gui.js:789
↓ 1 callers
Function
onChange
()
libs/dat.gui.js:855
↓ 1 callers
Function
onMouseDrag
(e)
libs/dat.gui.js:873
↓ 1 callers
Function
pointInPolygon
(verts, normal, p)
src/world/Narrowphase.js:661
↓ 1 callers
Function
popGeometry
()
libs/scenejs.js:12305
↓ 1 callers
Function
popProps
()
libs/scenejs.js:11547
↓ 1 callers
Function
processProps
(props)
libs/scenejs.js:11162
↓ 1 callers
Function
pushGeometry
(id, geo)
libs/scenejs.js:12258
↓ 1 callers
Function
q2a
(q)
util/cannon.serialize.js:29
↓ 1 callers
Function
quote
(s)
libs/scenejs.js:5139
↓ 1 callers
Function
render
()
src/demo/Demo.js:744
↓ 1 callers
Function
resetWidth
()
libs/dat.gui.js:1934
↓ 1 callers
Function
resolveSingleBilateral
(body1, pos1, body2, pos2, normal, impulse)
src/objects/RaycastVehicle.js:678
↓ 1 callers
Function
restartCurrentScene
* Restarts the current scene * @method restartCurrentScene
src/demo/Demo.js:234
↓ 1 callers
Function
restartGeometryCaches
()
src/demo/Demo.js:139
↓ 1 callers
Function
restoreProperties
(context, props)
libs/scenejs.js:11203
↓ 1 callers
Function
roundToDecimal
(value, decimals)
libs/dat.gui.js:912
↓ 1 callers
Function
scrollToNode
()
docs/assets/js/apidocs.js:194
↓ 1 callers
Function
setH
(e)
libs/dat.gui.js:3167
↓ 1 callers
Function
setMaterial
(node,mat)
src/demo/Demo.js:195
↓ 1 callers
Function
setPresetSelectIndex
(gui)
libs/dat.gui.js:2806
↓ 1 callers
Function
setSV
(e)
libs/dat.gui.js:3142
↓ 1 callers
Function
traceFunctionCall
(functionName, args)
libs/scenejs.js:5207
↓ 1 callers
Function
u
(a)
libs/Three.js:484
↓ 1 callers
Function
updateDisplays
(controllerArray)
libs/dat.gui.js:2824
↓ 1 callers
Function
updatePhysics
()
src/demo/Demo.js:704
↓ 1 callers
Function
visible
* Whether the face is visible from the vertex
libs/ConvexGeometry.js:105
Function
AABB
* Axis aligned bounding box class. * @class AABB * @constructor * @param {Object} [options] * @param {Vec3} [options.upperBound] * @param {Vec3
src/collision/AABB.js:14
Function
ArrayCollisionMatrix
* Collision "matrix". It's actually a triangular-shaped array of whether two bodies are touching this step, for reference next step * @class ArrayCol
src/collision/ArrayCollisionMatrix.js:8
Function
Body
* Base class for all body types. * @class Body * @constructor * @extends EventTarget * @param {object} [options] * @param {Vec3} [options.positio
src/objects/Body.js:42
Function
BooleanController
(object, property)
libs/dat.gui.js:1111
Function
Box
* A 3d box shape. * @class Box * @constructor * @param {Vec3} halfExtents * @author schteppe * @extends Shape
src/shapes/Box.js:15
Function
Broadphase
* Base class for broadphase implementations * @class Broadphase * @constructor * @author schteppe
src/collision/Broadphase.js:15
Function
CenteredDiv
()
libs/dat.gui.js:3560
Function
Color
()
libs/dat.gui.js:3282
Function
ColorController
(object, property)
libs/dat.gui.js:2976
Function
CompilationQueue
()
libs/scenejs.js:6045
Function
ConeEquation
* Cone equation. Works to keep the given body world vectors aligned, or tilted within a given angle from each other. * @class ConeEquation * @constr
src/equations/ConeEquation.js:20
Function
ConeTwistConstraint
* @class ConeTwistConstraint * @constructor * @author schteppe * @param {Body} bodyA * @param {Body} bodyB * @param {object} [options] * @param
src/constraints/ConeTwistConstraint.js:24
Function
Constraint
* Constraint base class * @class Constraint * @author schteppe * @constructor * @param {Body} bodyA * @param {Body} bodyB * @param {object} [opt
src/constraints/Constraint.js:16
Function
ContactEquation
* Contact/non-penetration constraint equation * @class ContactEquation * @constructor * @author schteppe * @param {Body} bodyA * @param {Body} bo
src/equations/ContactEquation.js:16
Function
ContactMaterial
* Defines what happens when two materials meet. * @class ContactMaterial * @constructor * @param {Material} m1 * @param {Material} m2 * @param {o
src/material/ContactMaterial.js:19
Function
Controller
(object, property)
libs/dat.gui.js:190
Function
ConvexPolyhedron
* A set of polygons describing a convex shape. * @class ConvexPolyhedron * @constructor * @extends Shape * @description The shape MUST be convex f
src/shapes/ConvexPolyhedron.js:27
Function
Cylinder
* @class Cylinder * @constructor * @extends ConvexPolyhedron * @author schteppe / https://github.com/schteppe * @param {Number} radiusTop * @para
src/shapes/Cylinder.js:18
Function
DistanceConstraint
* Constrains two bodies to be at a constant distance from each others center of mass. * @class DistanceConstraint * @constructor * @author schteppe
src/constraints/DistanceConstraint.js:17
Function
Equation
* Equation base class * @class Equation * @constructor * @author schteppe * @param {Body} bi * @param {Body} bj * @param {Number} minForce Minim
src/equations/Equation.js:16
Function
EventTarget
()
src/utils/EventTarget.js:6
Function
FrictionEquation
* Constrains the slipping in a contact along a tangent * @class FrictionEquation * @constructor * @author schteppe * @param {Body} bodyA * @param
src/equations/FrictionEquation.js:17
Function
FunctionController
(object, property, text)
libs/dat.gui.js:1051
Function
GSSolver
* Constraint equation Gauss-Seidel solver. * @class GSSolver * @constructor * @todo The spook parameters should be specified for each constraint, n
src/solver/GSSolver.js:16
Function
GUI
(params)
libs/dat.gui.js:1580
Function
GeometryCache
(createFunc)
src/demo/Demo.js:858
Function
GridBroadphase
* Axis aligned uniform grid broadphase. * @class GridBroadphase * @constructor * @extends Broadphase * @todo Needs support for more than just plan
src/collision/GridBroadphase.js:19
Function
Heightfield
* Heightfield shape class. Height data is given as an array. These data points are spread out evenly with a given distance. * @class Heightfield * @
src/shapes/Heightfield.js:36
Function
HingeConstraint
* Hinge constraint. Think of it as a door hinge. It tries to keep the door in the correct place and with the correct orientation. * @class HingeConst
src/constraints/HingeConstraint.js:25
Function
JacobianElement
* An element containing 6 entries, 3 spatial and 3 rotational degrees of freedom. * @class JacobianElement * @constructor
src/math/JacobianElement.js:10
Function
LockConstraint
* Lock constraint. Will remove all degrees of freedom between the bodies. * @class LockConstraint * @constructor * @author schteppe * @param {Body
src/constraints/LockConstraint.js:21
Function
Mat3
* A 3x3 matrix. * @class Mat3 * @constructor * @param array elements Array of nine elements. Optional. * @author schteppe / http://github.com/scht
src/math/Mat3.js:12
Function
Material
* Defines a physics material. * @class Material * @constructor * @param {object} [options] * @author schteppe
src/material/Material.js:10
Function
NaiveBroadphase
* Naive broadphase implementation, used in lack of better ones. * @class NaiveBroadphase * @constructor * @description The naive broadphase looks a
src/collision/NaiveBroadphase.js:13
Function
Narrowphase
* Helper class for the World. Generates ContactEquations. * @class Narrowphase * @constructor * @todo Sphere-ConvexPolyhedron contacts * @todo Con
src/world/Narrowphase.js:23
Function
NodeSelector
(node)
libs/scenejs.js:1323
Function
NumberController
(object, property, params)
libs/dat.gui.js:690
Function
NumberControllerBox
(object, property, params)
libs/dat.gui.js:822
Function
NumberControllerSlider
(object, property, min, max, step)
libs/dat.gui.js:944
Function
ObjectCollisionMatrix
* Records what objects are colliding with each other * @class ObjectCollisionMatrix * @constructor
src/collision/ObjectCollisionMatrix.js:8
Function
Octree
* @class Octree * @param {AABB} aabb The total AABB of the tree * @param {object} [options] * @param {number} [options.maxDepth=8] * @extends Octr
src/utils/Octree.js:47
Function
OctreeNode
* @class OctreeNode * @param {object} [options] * @param {Octree} [options.root] * @param {AABB} [options.aabb]
src/utils/Octree.js:12
Function
OptionController
(object, property, options)
libs/dat.gui.js:600
Function
Particle
* Particle shape. * @class Particle * @constructor * @author schteppe * @extends Shape
src/shapes/Particle.js:13
Function
Pb
(a)
libs/Three.js:533
Function
Plane
* A plane, facing in the Z direction. The plane has its surface at z=0 and everything below z=0 is assumed to be solid plane. To make the plane face i
src/shapes/Plane.js:13
Function
PointToPointConstraint
* Connects two bodies at given offset points. * @class PointToPointConstraint * @extends Constraint * @constructor * @param {Body} bodyA * @param
src/constraints/PointToPointConstraint.js:32
Function
PointerLockControls
( camera, cannonBody )
examples/js/PointerLockControls.js:5
Function
Pool
* For pooling objects that can be reused. * @class Pool * @constructor
src/utils/Pool.js:8
Function
Quaternion
* A Quaternion describes a rotation in 3D space. The Quaternion is mathematically defined as Q = x*i + y*j + z*k + w, where (i,j,k) are imaginary basi
src/math/Quaternion.js:15
Function
Ray
* A line in 3D space that intersects bodies and return points. * @class Ray * @constructor * @param {Vec3} from * @param {Vec3} to
src/collision/Ray.js:19
Function
RaycastResult
* Storage for Ray casting data. * @class RaycastResult * @constructor
src/collision/RaycastResult.js:10
Function
RaycastVehicle
* Vehicle helper class that casts rays from the wheel positions towards the ground and applies forces. * @class RaycastVehicle * @constructor * @pa
src/objects/RaycastVehicle.js:20
Function
RigidVehicle
* Simple vehicle helper class with spherical rigid body wheels. * @class RigidVehicle * @constructor * @param {Body} [options.chassisBody]
src/objects/RigidVehicle.js:15
Function
RotationalEquation
* Rotational constraint. Works to keep the local vectors orthogonal to each other in world space. * @class RotationalEquation * @constructor * @aut
src/equations/RotationalEquation.js:19
Function
RotationalMotorEquation
* Rotational motor constraint. Tries to keep the relative angular velocity of the bodies to a given value. * @class RotationalMotorEquation * @const
src/equations/RotationalMotorEquation.js:17
Function
SAPBroadphase
* Sweep and prune broadphase along one axis. * * @class SAPBroadphase * @constructor * @param {World} [world] * @extends Broadphase
src/collision/SAPBroadphase.js:14
Function
SPHSystem
* Smoothed-particle hydrodynamics system * @class SPHSystem * @constructor
src/objects/SPHSystem.js:15
Function
SceneJS_DrawListRenderer
(cfg)
libs/scenejs.js:9761
Function
SceneJS_Map
()
libs/scenejs.js:21
Function
SceneJS_PickBuffer
(cfg)
libs/scenejs.js:7308
Function
SceneJS_State
(cfg)
libs/scenejs.js:1188
Function
SceneJS_math_AxisBox3
(min, max)
libs/scenejs.js:3837
Function
SceneJS_math_Box3
(min, max)
libs/scenejs.js:3723
Function
SceneJS_math_Frustum
(viewMatrix, projectionMatrix, viewport)
libs/scenejs.js:3953
← previous
next →
201–300 of 420, ranked by callers