liquid2d library

Classes

Arbiter
The cpArbiter struct tracks pairs of colliding shapes.
ArbiterResource
Body
BodyResources
BoxShape
CircleShape
CollisionHandler
Struct that holds function callback pointers to configure custom collision handling. Collision handlers have a pair of types; when a collision occurs between two shapes that have these types, the collision handler functions are triggered.
CollisionHandlerResource
Constraint
ConstraintResource
ContactPoint
contact points.
ContactPointSet
An Object that wraps up the important collision data for an arbiter.
DampedRotarySpring
DampedSpring
DebugDrawOption
GearJoint
GrooveJoint
KinematicBody
Allocate and initialize a cpBody, and set it as a kinematic body.
Liquid2d
PinJoint
Pin Joint Constraint
PivotJoint
Pivot Joint Constraint
PointQueryInfo
Point query info.
PolyShape
RatchetJoint
RotaryLimitJoint
SegmentQueryInfo
Segment query info.
SegmentShape
Shape
ShapeFilter
Fast collision filtering type that is used to determine if two objects collide before calling collision or query callbacks.
ShapeResources
SimpleMotor
Simple Motor Constraint
Sleeping
SlideJoint
Space
SpaceResource
StaticBody
Allocate and initialize a cpBody, and set it as a static body.

Extensions

Aho on Map<int, void Function(Space, T)>
CpSleeping on UnnamedStruct1
CpTransformPoint on Matrix4
Rect on Rect

Constants

Area → const _Area
Centeroid → const _Centeroid
Moment → const _Moment

Properties

bindings → Chipmunks
The bindings to the native functions in _dylib.
final
uuid ↔ Uuid
getter/setter pair

Functions

addcllc<T>() HashMap<int, void Function(Space, T)>
beginCallback(Pointer<cpArbiter> arbiter, Pointer<cpSpace> space, Pointer<Void> data, int callbackId) int
bodyFreeWrap(Pointer<cpSpace> space, Pointer<Void> body, Pointer<Void> unused, int callbacId) → void
constraintFreeWrap(Pointer<cpSpace> space, Pointer<Void> constraint, Pointer<Void> unused, int callbackId) → void
cr_postSolveCallback(Pointer<cpConstraint> constraint, Pointer<cpSpace> space, int callbackId) → void
cr_preSolveCallback(Pointer<cpConstraint> constraint, Pointer<cpSpace> space, int callbackId) → void
eachBodyCallback(Pointer<cpBody> body, Pointer<Void> data, int callbackId) → void
eachShapeCallback(Pointer<cpShape> shape, Pointer<Void> data, int callbackId) → void
postBodyFree(Pointer<cpBody> body, Pointer<Void> space, int unused) → void
postConstraintFree(Pointer<cpConstraint> constraint, Pointer<Void> space, int callbackId) → void
postShapeFree(Pointer<cpShape> shape, Pointer<Void> space, int unused) → void
postSolveCallback(Pointer<cpArbiter> arbiter, Pointer<cpSpace> space, Pointer<Void> data, int callbackId) → void
preSolveCallback(Pointer<cpArbiter> arbiter, Pointer<cpSpace> space, Pointer<Void> data, int callbackId) int
quickHull(List<Vector2> verts, double tol) → (int, List<Vector2>)
separateCallback(Pointer<cpArbiter> arbiter, Pointer<cpSpace> space, Pointer<Void> data, int callbackId) → void
shapeFreeWrap(Pointer<cpSpace> space, Pointer<Void> shape, Pointer<Void> unused, int callbackId) → void