BASIC commands
2DPhysics
66 commands
- PhysicsScalePhysicsScale(scale float)
- PhysicsGravityPhysicsGravity(x float, y float)
- PhysicsDebugOnPhysicsDebugOn()
- PhysicsDebugOffPhysicsDebugOff()
- PhysicsThreadingPhysicsThreading(threads integer)
- PhysicsCCDPhysicsCCD(mode integer)
- PhysicsSleepingPhysicsSleeping(mode integer)
- PhysicsSolveTimePhysicsSolveTime() → float
- PhysicsIslandCountPhysicsIslandCount() → integer
- PhysicsMaxPolygonPointsPhysicsMaxPolygonPoints(points integer)
- PhysicsWallTopPhysicsWallTop(mode integer)
- PhysicsWallLeftPhysicsWallLeft(mode integer)
- PhysicsWallRightPhysicsWallRight(mode integer)
- PhysicsWallBottomPhysicsWallBottom(mode integer)
- CreatePhysicsForceCreatePhysicsForce(x float, y float, power float, limit float, range float, fade integer) → integer
- DeletePhysicsForceDeletePhysicsForce(forceID integer)
- PhysicsForcePositionPhysicsForcePosition(forceID integer, x float, y float)
- PhysicsForcePowerPhysicsForcePower(forceID integer, power float)
- PhysicsForceRangePhysicsForceRange(forceID integer, range float)
- DeleteJointDeleteJoint(jointID integer)
- JointExistsJointExists(jointID integer) → integer
- CreateDistanceJointCreateDistanceJoint(jointID integer, spriteID1 integer, spriteID2 integer, x float, y float, x2 float, y2 float, colConnected integer) +1
- CreateRevoluteJointCreateRevoluteJoint(jointID integer, spriteID1 integer, spriteID2 integer, x float, y float, colConnected integer) +1
- CreatePrismaticJointCreatePrismaticJoint(jointID integer, spriteID1 integer, spriteID2 integer, x float, y float, vx float, vy float, colConnected integer) +1
- CreatePulleyJointCreatePulleyJoint(jointID integer, spriteID1 integer, spriteID2 integer, gnd1x float, gnd1y float, gnd2x float, gnd2y float, a1x float, a1y float, a2x float, a2y float, ratio float, colConnected integer)
- CreateMouseJointCreateMouseJoint(jointID integer, spriteID integer, x float, y float, maxForce float) +1
- CreateLineJointCreateLineJoint(jointID integer, spriteID1 integer, spriteID2 integer, x float, y float, vx float, vy float, colConnected integer) +1
- CreateWeldJointCreateWeldJoint(jointID integer, spriteID1 integer, spriteID2 integer, x float, y float, colConnected integer) +1
- CreateGearJointCreateGearJoint(jointID integer, jointID1 integer, jointID2 integer, ratio float) +1
- JointPulleyPrepareJointPulleyPrepare(spriteID1 integer, spriteID2 integer, ratio float, colConnected integer)
- JointPulleyFinishJointPulleyFinish(gnd1x float, gnd1y float, gnd2x float, gnd2y float, a1x float, a1y float, a2x float, a2y float) → integer
- CreateRopeJointCreateRopeJoint(jointID integer, spriteID1 integer, spriteID2 integer, x float, y float, x2 float, y2 float, maxLength float, colConnected integer) +1
- JointLimitOnJointLimitOn(jointID integer, lowerLimit float, upperLimit float)
- JointLimitOffJointLimitOff(jointID integer)
- JointMotorOnJointMotorOn(jointID integer, speed float, maxForce float)
- JointMotorOffJointMotorOff(jointID integer)
- JointMouseTargetJointMouseTarget(jointID integer, x float, y float)
- JointReactionForceXJointReactionForceX(jointID integer) → float
- JointReactionForceYJointReactionForceY(jointID integer) → float
- JointReactionTorqueJointReactionTorque(jointID integer) → float
- PhysicsRayCastPhysicsRayCast(x float, y float, x2 float, y2 float) → integer
- PhysicsRayCastGroupPhysicsRayCastGroup(group integer, x float, y float, x2 float, y2 float) → integer
- PhysicsRayCastCategoryPhysicsRayCastCategory(category integer, x float, y float, x2 float, y2 float) → integer
- SpriteRayCastSingleSpriteRayCastSingle(sprite integer, x float, y float, x2 float, y2 float) → integer
- SpriteRayCastSpriteRayCast(x float, y float, x2 float, y2 float) → integer
- SpriteRayCastGroupSpriteRayCastGroup(group integer, x float, y float, x2 float, y2 float) → integer
- SpriteRayCastCategorySpriteRayCastCategory(category integer, x float, y float, x2 float, y2 float) → integer
- RaycastSpriteIDRaycastSpriteID() → integer
- RaycastXRaycastX() → float
- RaycastYRaycastY() → float
- RaycastNormalXRaycastNormalX() → float
- RaycastNormalYRaycastNormalY() → float
- RaycastFractionRaycastFraction() → float
- ContactFirstContactFirst() → integer
- ContactNextContactNext() → integer
- ContactWorldXContactWorldX() → float
- ContactWorldYContactWorldY() → float
- ContactSprite1ContactSprite1() → integer
- ContactSprite2ContactSprite2() → integer
- SpriteContactFirstSpriteContactFirst(iSprite1 integer) → integer
- SpriteContactNextSpriteContactNext() → integer
- SpriteContactWorldXSpriteContactWorldX() → float
- SpriteContactWorldYSpriteContactWorldY() → float
- SpriteContactSpriteID2SpriteContactSpriteID2() → integer
- JointMouseMaxForceJointMouseMaxForce(jointID integer, maxForce float)
- JointDampingJointDamping(jointID integer, dampingRatio float, frequency float)