- core
- Context
- ElementAllocator
- ElementOutput
- Engine
- Entity
- EventEmitter
- EventHandler
- Group
- Modifier
- OptionsManager
- RenderNode
- Scene
- SpecParser
- Transform
- View
- ViewSequence
- events
- EventArbiter
- EventFilter
- EventMapper
- inputs
- Accumulator
- GenericSync
- MouseSync
- PinchSync
- RotateSync
- ScaleSync
- ScrollSync
- TouchSync
- TouchTracker
- TwoFingerSync
- math
- Matrix
- Quaternion
- Random
- Utilities
- Vector
- modifiers
- Draggable
- Fader
- ModifierChain
- StateModifier
- physics
- PhysicsEngine
- physics/bodies
- Body
- Circle
- Particle
- Rectangle
- physics/constraints
- Surface
- Collision
- Constraint
- Curve
- Distance
- Snap
- Wall
- Walls
- physics/forces
- Drag
- Force
- Repulsion
- RotationalDrag
- RotationalSpring
- Spring
- VectorField
- physics/integrators
- SymplecticEuler
- surfaces
- CanvasSurface
- ContainerSurface
- ImageSurface
- InputSurface
- TextareaSurface
- VideoSurface
- transitions
- CachedMap
- Easing
- MultipleTransition
- SnapTransition
- SpringTransition
- Transitionable
- TransitionableTransform
- TweenTransition
- WallTransition
- utilities
- KeyCodes
- Timer
- Utility
- views
- ContextualView
- Deck
- DrawerLayout
- EdgeSwapper
- FlexibleLayout
- Flipper
- GridLayout
- HeaderFooterLayout
- Lightbox
- RenderController
- ScrollContainer
- Scroller
- Scrollview
- SequentialLayout
- widgets
- NavigationBar
- TabBar
Curve
A constraint that keeps a physics body on a given implicit curve regardless of other physical forces are applied to it. A curve constraint is two surface constraints in disguise, as a curve is the intersection of two surfaces, and is essentially constrained to both
Overview
Options
equation
                  plane
                  period
                  number
                Methods
applyConstraint
                Curve(options)
Constructor Parameters
options
Options
An object of configurable options.
equation
                      Function
                      An implicitly defined surface f(x,y,z) = 0 that body is constrained to e.g. function(x,y,z) { x*x + y*y - r*r } corresponds to a circle of radius r pixels
                      
                    plane
                      Function
                      An implicitly defined second surface that the body is constrained to
                      
                    period
                      Number
                      The spring-like reaction when the constraint is violated
                      
                    number
                      Number
                      The damping-like reaction when the constraint is violated
                      
                    Methods
applyConstraint(targets, source, dt)
Adds a curve impulse to a physics body.
Parameters
targets
                    Array.Body
                    Array of bodies to apply force to.
                    
                  source
                    Body
                    Not applicable
                    
                  dt
                    Number
                    Delta time