Structs§
- Aabb
- Angular
Constraint - ArcPoint
- Ball
Socket Constraint - Broad
Phase - BvhNode
- Cloth
Params Panel - Cloth
Particle - Cloth
Simulation - Cloth
Spring - Collision
Shape Editor - Cone
Twist Constraint - Constraint
Solver - Contact
Manifold - Contact
Point - Contact
Stats - Contact
Visualizer - Convex
Hull3D - Convex
Hull Face - DOF6
Drive - Debris
Particle - Destruction
Panel - Differential
- Distance
Constraint - Dynamic
Aabb Tree - Engine
Torque Curve - Explosion
Wave - Fixed
Constraint - Fluid
Params Panel - Fluid
Simulation - Force
Analyzer - Force
Plate - Fracture
Rng - Simple LCG random number generator for reproducible fracture
- GearBox
- Gear
Constraint - Generic6DOF
Constraint - GjkSimplex
- Heightfield
Shape - Hinge
Constraint - Jacobian
Row - Joint
Drive - Joint
Editor - Joint
Visualizer - Limit
Constraint - Material
Editor Panel - Motor
Constraint - Motor
Velocity Controller - Obb
- Pendulum
Chain - Physics
Debug Overlay - Physics
Editor - Physics
Editor Layout - Physics
Material - Physics
Picker - Physics
Property Curve - Physics
Snapshot - Physics
Stats - Physics
World Settings - Pneumatic
Spring - Point
ToPoint Constraint - Pulley
Constraint - Rack
AndPinion Constraint - Ragdoll
Bone - Ragdoll
Editor - Ragdoll
Joint - Ragdoll
Panel - Rigid
Body Inspector - SapEndpoint
- Shallow
Water Sim - Shape
Parameters - Simulation
Replay - Slider
Constraint - Soft
Body - Soft
Body Node - Soft
Body Spring - SphParticle
- Spring
Constraint - Stability
Analyzer - Trigger
Volume - Vehicle
Params Panel - Vehicle
Physics - Voronoi
Cell - Voronoi
Fracture - Weld
Constraint - Wheel
State - Wind
Field
Enums§
- Broadphase
Type - Cloth
Spring Type - Collision
Shape Type - Constraint
- Curve
Loop Mode - Differential
Type - Drive
Force Mode - Engine
Type - Joint
Gizmo Mode - Material
Sort By - Physics
Editor Command - Physics
Tab - Ragdoll
Blend Mode - Rigid
Body Shape Type - Surface
Type
Constants§
- AIR_
DENSITY - ALUMINUM_
DENSITY - CONCRETE_
DENSITY - COPPER_
DENSITY - DEFAULT_
FRICTION - DEFAULT_
RESTITUTION - DEG_
TO_ RAD - EPSILON
- GLASS_
DENSITY - GOLD_
DENSITY - GRAVITY
- HALF_PI
- ICE_
DENSITY - PI
- RAD_
TO_ DEG - RUBBER_
DENSITY - SAND_
DENSITY - SLEEP_
ANGULAR_ THRESHOLD - SLEEP_
LINEAR_ THRESHOLD - SPH_
POLY6_ COEFF - SPH_
SPIKY_ COEFF - SPH_
VISC_ COEFF - STEEL_
DENSITY - TWO_PI
- WATER_
DENSITY - WOOD_
DENSITY
Functions§
- ackermann_
steering - Compute Ackermann steering angles for inner and outer wheel L = wheelbase, W = track width, delta = steering angle (outer)
- angular_
correction_ impulse - Compute the angular impulse needed to align two coordinate frames
- angular_
velocity_ from_ delta_ quat - Compute angular velocity from rotation delta over dt
- anisotropic_
friction - baumgarte_
position_ correction - Solve a 1D position constraint (Baumgarte): return position correction
- build_
material_ library - buoyancy_
force - Compute buoyancy force on a submerged object F_b = rho_fluid * V_submerged * g
- compute_
compound_ com - Compute the center of mass of a compound body
- compute_
compound_ inertia - Compute combined inertia for a compound body using parallel axis theorem
- compute_
convex_ hull_ 2d - Compute convex hull (gift wrapping / Jarvis march) in 2D projection Then extrude in 3D for approximate convex hull vertices
- cross_
matrix - Cross product matrix (skew symmetric) for angular dynamics
- decompose_
swing_ twist - drag_
force - Drag force: F_d = 0.5 * rho * v^2 * Cd * A
- effective_
radius - Effective radius for two spheres in contact 1/R_eff = 1/R_a + 1/R_b
- effective_
young_ modulus - Effective Young’s modulus for two materials in contact (Hertz) 1/E_eff = (1-nu_a^2)/E_a + (1-nu_b^2)/E_b
- epa_
sphere_ sphere - EPA (Expanding Polytope Algorithm) — compute penetration depth and normal Simplified version for sphere vs sphere
- fabrik_
solve - FABRIK N-bone chain solver
- feet_
to_ meters - fit_
aabb_ to_ triangles - Fit an AABB to a set of triangles
- fit_
obb_ pca - Fit an OBB to a point cloud using PCA approximation Finds principal axes from covariance matrix (3x3 symmetric Jacobi)
- friction_
impulse - Compute friction impulse (Coulomb friction cone)
- ftlb_
to_ nm - gjk_
intersect - gjk_
intersect_ box_ box - Simple GJK (line simplex and triangle tests inline)
- gram_
schmidt - Gram-Schmidt orthonormalization of three vectors
- heightfield_
closest_ point - hertz_
contact_ force - Hertz contact force: F = (4/3) * E_eff * sqrt(R_eff) * delta^(3/2)
- hertz_
contact_ time - Approximate collision time from material properties (Hertz contact) t_contact ~ 2.87 * (m / (E_eff * v_rel))^(2/5)
- horsepower_
to_ watts - impact_
force - Compute impact force from collision (impulse-momentum) F = m * delta_v / delta_t
- inertia_
parallel_ axis - Parallel axis theorem: shift inertia tensor by displacement d I_new = I_cm + m*(|d|^2I3 - dd^T)
- inertia_
tensor_ box - Compute inertia tensor for a solid box (principal moments) Ixx = (1/12)m(h^2 + d^2), Iyy = (1/12)m(w^2 + d^2), Izz = (1/12)m(w^2 + h^2)
- inertia_
tensor_ capsule - Compute inertia tensor for a capsule (cylinder + two hemispheres) Capsule aligned along Y axis
- inertia_
tensor_ cone - Compute inertia tensor for a solid cone aligned along Y axis Ixx = Izz = (3/80)m(4*r^2 + h^2), Iyy = (3/10)mr^2
- inertia_
tensor_ cylinder - Compute inertia tensor for a solid cylinder aligned along Y axis Ixx = Izz = (1/12)m(3*r^2 + h^2), Iyy = (1/2)mr^2
- inertia_
tensor_ sphere - Compute inertia tensor for a solid sphere I = (2/5)mr^2 (all principal moments equal)
- jacobi_
eigen_ 3x3 - Simple Jacobi eigendecomposition for symmetric 3x3 matrix Returns (eigenvalues, eigenvectors as Vec3)
- joules_
to_ kwh - kg_
to_ pounds - kinetic_
energy - Kinetic energy of a rigid body
- kph_
to_ ms - kwh_
to_ joules - mat3_
det - 3x3 determinant
- mat3_
inverse - 3x3 matrix inverse
- mat3_
mul - Multiply two 3x3 matrices
- mat3_
mul_ vec - Multiply 3x3 matrix by vector
- mat3_
transpose - Transpose 3x3 matrix
- material_
restitution - mesh_
center_ of_ mass - Compute mesh center of mass (uniform density)
- mesh_
inertia_ tensor - Compute mesh inertia tensor (uniform density, about origin)
- mesh_
signed_ volume - Compute signed volume of a triangle mesh (divergence theorem)
- mesh_
surface_ area - Compute mesh surface area
- meters_
to_ feet - mph_
to_ ms - ms_
to_ kph - ms_
to_ mph - nm_
to_ ftlb - omega_
to_ quat_ deriv - Convert angular velocity vector to quaternion derivative
- pa_
to_ psi - pacejka_
dry_ asphalt - Pacejka coefficients for typical dry asphalt
- pacejka_
ice - Pacejka coefficients for ice
- pacejka_
magic_ formula - Pacejka Magic Formula tire model F = D * sin(C * atan(Balpha - E(Balpha - atan(Balpha))))
- pacejka_
wet_ road - Pacejka coefficients for wet road
- perpendicular_
to - poisson_
ratio - Poisson’s ratio table
- potential_
energy - Potential energy (gravitational)
- pounds_
to_ kg - psi_
to_ pa - quat_
to_ axis_ angle - rads_
to_ rpm - ray_
aabb_ intersect - relative_
velocity - Compute relative velocity of two points on two rigid bodies
- resolve_
collision_ impulse - restitution_
between - Coefficient of restitution between two materials
- restitution_
velocity - Restitution-based rebound velocity
- rolling_
friction_ torque - rpm_
to_ rads - run_
physics_ editor_ smoke_ test - screen_
to_ world_ ray - set_
rigid_ body_ velocity - smoothstep
- snap_
value - sph_
kernel_ poly6 - Poly6 kernel W(r,h) = (315/64πh^9)*(h^2-r^2)^3 for |r|<=h
- sph_
kernel_ poly6_ grad - Gradient of Poly6 kernel
- sph_
kernel_ poly6_ lap - Laplacian of Poly6 kernel
- sph_
kernel_ spiky_ grad - Spiky kernel gradient (for pressure) — W_spiky = (15/πh^6)*(h-|r|)^3
- sph_
kernel_ viscosity_ lap - Viscosity kernel laplacian: W_lap = (15/(2πh^3))*(-(r^3/2h^3) + r^2/h^2 + h/(2r) - 1)
- sphere_
heightfield_ contact - spring_
potential_ energy - Spring potential energy
- stribeck_
friction - support_
box - GJK support function for a box
- support_
minkowski - Minkowski difference support function
- support_
sphere - GJK support function for a convex shape (sphere)
- surface_
friction_ coefficient - terminal_
velocity - Compute terminal velocity for an object falling through air v_t = sqrt(2mg / (rho * Cd * A))
- transform_
rigid_ body - two_
bone_ ik - 2-bone analytical IK solve
- watts_
to_ horsepower - world_
to_ screen - young_
modulus - Young’s modulus table (Pa)