Added Sprite Physics and Joints

This commit is contained in:
n00b
2024-10-27 23:24:37 -04:00
parent d49b9f5d58
commit 8f1b72a8e2
125 changed files with 9264 additions and 1223 deletions

View File

@@ -0,0 +1,4 @@
#title applySpriteAngularImpulse [RCBasic Doc]
#header sub applySpriteAngularImpulse( spr_id, impulse)

View File

@@ -0,0 +1,4 @@
#title applySpriteCentralForce [RCBasic Doc]
#header sub applySpriteCentralForce( spr_id, x, y)

View File

@@ -0,0 +1,4 @@
#title applySpriteForce [RCBasic Doc]
#header sub applySpriteForce( spr_id, fX, fY, pX, pY)

View File

@@ -0,0 +1,4 @@
#title applySpriteLinearImpulse [RCBasic Doc]
#header sub applySpriteLinearImpulse( spr_id, iX, iY, pX, pY)

View File

@@ -0,0 +1,4 @@
#title applySpriteTorque [RCBasic Doc]
#header sub applySpriteTorque( spr_id, torque)

View File

@@ -32,7 +32,7 @@ The above example will compare each case in the block to the <b>SELECT CASE</b>.
#code
Select Case 5
Case 6
Print THIS WILL NOT PRINT"
Print "THIS WILL NOT PRINT"
Case 4, 5
Print "THIS WILL PRINT"
Default

View File

@@ -0,0 +1,4 @@
#title createDistanceJoint [RCBasic Doc]
#header function createDistanceJoint( spriteA, spriteB, aX, aY, bX, bY)

View File

@@ -0,0 +1,4 @@
#title createFrictionJoint [RCBasic Doc]
#header function createFrictionJoint( spriteA, spriteB, x, y)

View File

@@ -0,0 +1,4 @@
#title createGearJoint [RCBasic Doc]
#header function createGearJoint( jointA, jointB, g_ratio)

View File

@@ -0,0 +1,4 @@
#title createMotorJoint [RCBasic Doc]
#header function createMotorJoint( spriteA, spriteB)

View File

@@ -0,0 +1,4 @@
#title createPrismaticJoint [RCBasic Doc]
#header function createPrismaticJoint( spriteA, spriteB, aX, aY, axisX, axisY)

View File

@@ -0,0 +1,4 @@
#title createPulleyJoint [RCBasic Doc]
#header function createPulleyJoint( spriteA, spriteB, gaX, gaY, gbX, gbY, aX, aY, bX, bY, j_ratio)

View File

@@ -0,0 +1,4 @@
#title createRevoluteJoint [RCBasic Doc]
#header function createRevoluteJoint( spriteA, spriteB, x, y)

View File

@@ -0,0 +1,4 @@
#title createWeldJoint [RCBasic Doc]
#header function createWeldJoint( spriteA, spriteB, x, y)

View File

@@ -0,0 +1,4 @@
#title createWheelJoint [RCBasic Doc]
#header function createWheelJoint( spriteA, spriteB, aX, aY, axisX, axisY)

View File

@@ -0,0 +1,4 @@
#title enableJointLimit [RCBasic Doc]
#header sub enableJointLimit( joint_id, flag)

View File

@@ -0,0 +1,4 @@
#title enableJointMotor [RCBasic Doc]
#header sub enableJointMotor( joint_id, flag)

View File

@@ -0,0 +1,4 @@
#title getActorCenter [RCBasic Doc]
#header sub getActorCenter( actor, ByRef x, ByRef y, ByRef z)
Gets an actor's center of mass position. This is useful for setting the origin of constraints.

View File

@@ -1,4 +0,0 @@
#title getActorCOMPosition [RCBasic Doc]
#header sub getActorCOMPosition( actor, ByRef x, ByRef y, ByRef z)
Gets an actor's center of mass position. This is useful for setting the origin of constraints.

View File

@@ -0,0 +1,4 @@
#title getActorVelocityInLocalPoint [RCBasic Doc]
#header sub getActorVelocityInLocalPoint( actor, rel_x, rel_y, rel_z, ByRef x, ByRef y, ByRef z)

View File

@@ -0,0 +1,4 @@
#title getJointAngle [RCBasic Doc]
#header function getJointAngle( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointAngularOffset [RCBasic Doc]
#header function getJointAngularOffset( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointAngularSpeed [RCBasic Doc]
#header function getJointAngularSpeed( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointCorrectionFactor [RCBasic Doc]
#header function getJointCorrectionFactor( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointCurrentLength [RCBasic Doc]
#header function getJointCurrentLength( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointCurrentLengthA [RCBasic Doc]
#header function getJointCurrentLengthA( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointCurrentLengthB [RCBasic Doc]
#header function getJointCurrentLengthB( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointDamping [RCBasic Doc]
#header function getJointDamping( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointGroundAnchorA [RCBasic Doc]
#header sub getJointGroundAnchorA( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointGroundAnchorB [RCBasic Doc]
#header sub getJointGroundAnchorB( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointLength [RCBasic Doc]
#header function getJointLength( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointLengthA [RCBasic Doc]
#header function getJointLengthA( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointLengthB [RCBasic Doc]
#header function getJointLengthB( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointLinearOffset [RCBasic Doc]
#header sub getJointLinearOffset( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointLinearSpeed [RCBasic Doc]
#header function getJointLinearSpeed( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointLocalAnchorA [RCBasic Doc]
#header sub getJointLocalAnchorA( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointLocalAnchorB [RCBasic Doc]
#header sub getJointLocalAnchorB( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointLocalAxisA [RCBasic Doc]
#header sub getJointLocalAxisA( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointLowerLimit [RCBasic Doc]
#header function getJointLowerLimit( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMaxForce [RCBasic Doc]
#header function getJointMaxForce( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMaxLength [RCBasic Doc]
#header function getJointMaxLength( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMaxMotorForce [RCBasic Doc]
#header function getJointMaxMotorForce( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMaxMotorTorque [RCBasic Doc]
#header function getJointMaxMotorTorque( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMaxTorque [RCBasic Doc]
#header function getJointMaxTorque( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMinLength [RCBasic Doc]
#header function getJointMinLength( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMotorForce [RCBasic Doc]
#header function getJointMotorForce( joint_id, inv_dt)

View File

@@ -0,0 +1,4 @@
#title getJointMotorSpeed [RCBasic Doc]
#header function getJointMotorSpeed( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointMotorTorque [RCBasic Doc]
#header function getJointMotorTorque( joint_id, inv_dt)

View File

@@ -0,0 +1,4 @@
#title getJointRatio [RCBasic Doc]
#header function getJointRatio( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointReactionForce [RCBasic Doc]
#header sub getJointReactionForce( joint_id, inv_dt, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointReactionTorque [RCBasic Doc]
#header function getJointReactionTorque( joint_id, inv_dt)

View File

@@ -0,0 +1,4 @@
#title getJointReferenceAngle [RCBasic Doc]
#header function getJointReferenceAngle( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointSpeed [RCBasic Doc]
#header function getJointSpeed( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointStiffness [RCBasic Doc]
#header function getJointStiffness( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointTranslation [RCBasic Doc]
#header function getJointTranslation( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointUpperLimit [RCBasic Doc]
#header function getJointUpperLimit( joint_id)

View File

@@ -0,0 +1,4 @@
#title getJointWorldAnchorA [RCBasic Doc]
#header sub getJointWorldAnchorA( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getJointWorldAnchorB [RCBasic Doc]
#header sub getJointWorldAnchorB( joint_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteAngularDamping [RCBasic Doc]
#header function getSpriteAngularDamping( spr_id)

View File

@@ -0,0 +1,4 @@
#title getSpriteAngularVelocity [RCBasic Doc]
#header function getSpriteAngularVelocity( spr_id)

View File

@@ -0,0 +1,4 @@
#title getSpriteCenter [RCBasic Doc]
#header sub getSpriteCenter( spr_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteGravityScale [RCBasic Doc]
#header function getSpriteGravityScale( spr_id)

View File

@@ -0,0 +1,4 @@
#title getSpriteInertia [RCBasic Doc]
#header function getSpriteInertia( spr_id)

View File

@@ -0,0 +1,4 @@
#title getSpriteLinearDamping [RCBasic Doc]
#header function getSpriteLinearDamping( spr_id)

View File

@@ -0,0 +1,4 @@
#title getSpriteLinearVelocity [RCBasic Doc]
#header sub getSpriteLinearVelocity( spr_id, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteLinearVelocityFromLocalPoint [RCBasic Doc]
#header sub getSpriteLinearVelocityFromLocalPoint( spr_id, pX, pY, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteLinearVelocityFromWorldPoint [RCBasic Doc]
#header sub getSpriteLinearVelocityFromWorldPoint( spr_id, wX, wY, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteLocalPoint [RCBasic Doc]
#header sub getSpriteLocalPoint( spr_id, wX, wY, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteLocalVector [RCBasic Doc]
#header sub getSpriteLocalVector( spr_id, wX, wY, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteMass [RCBasic Doc]
#header function getSpriteMass( spr_id)

View File

@@ -0,0 +1,4 @@
#title getSpriteWorldPoint [RCBasic Doc]
#header sub getSpriteWorldPoint( spr_id, lX, lY, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title getSpriteWorldVector [RCBasic Doc]
#header sub getSpriteWorldVector( spr_id, lX, lY, ByRef x, ByRef y)

View File

@@ -0,0 +1,4 @@
#title jointIsLimitEnabled [RCBasic Doc]
#header function jointIsLimitEnabled( joint_id)

View File

@@ -0,0 +1,4 @@
#title jointMotorIsEnabled [RCBasic Doc]
#header function jointMotorIsEnabled( joint_id)

View File

@@ -0,0 +1,4 @@
#title setJointAngularOffset [RCBasic Doc]
#header sub setJointAngularOffset( joint_id, angleOffset)

View File

@@ -0,0 +1,4 @@
#title setJointCorrectionFactor [RCBasic Doc]
#header sub setJointCorrectionFactor( joint_id, factor)

View File

@@ -0,0 +1,4 @@
#title setJointDamping [RCBasic Doc]
#header sub setJointDamping( joint_id, damping)

View File

@@ -0,0 +1,4 @@
#title setJointLength [RCBasic Doc]
#header sub setJointLength( joint_id, jlen)

View File

@@ -0,0 +1,4 @@
#title setJointLimits [RCBasic Doc]
#header sub setJointLimits( joint_id, lower_limit, upper_limit)

View File

@@ -0,0 +1,4 @@
#title setJointLinearOffset [RCBasic Doc]
#header sub setJointLinearOffset( joint_id, x, y)

View File

@@ -0,0 +1,4 @@
#title setJointMaxForce [RCBasic Doc]
#header sub setJointMaxForce( joint_id, force)

View File

@@ -0,0 +1,4 @@
#title setJointMaxLength [RCBasic Doc]
#header sub setJointMaxLength( joint_id, jlen)

View File

@@ -0,0 +1,4 @@
#title setJointMaxMotorForce [RCBasic Doc]
#header sub setJointMaxMotorForce( joint_id, force)

View File

@@ -0,0 +1,4 @@
#title setJointMaxMotorTorque [RCBasic Doc]
#header sub setJointMaxMotorTorque( joint_id, torque)

View File

@@ -0,0 +1,4 @@
#title setJointMaxTorque [RCBasic Doc]
#header sub setJointMaxTorque( joint_id, torque)

View File

@@ -0,0 +1,4 @@
#title setJointMinLength [RCBasic Doc]
#header sub setJointMinLength( joint_id, jlen)

View File

@@ -0,0 +1,4 @@
#title setJointMotorSpeed [RCBasic Doc]
#header sub setJointMotorSpeed( joint_id, speed)

View File

@@ -0,0 +1,4 @@
#title setJointOrigin [RCBasic Doc]
#header sub setJointOrigin( joint_id, x, y)

View File

@@ -0,0 +1,4 @@
#title setJointRatio [RCBasic Doc]
#header sub setJointRatio( joint_id, j_ratio)

View File

@@ -0,0 +1,4 @@
#title setJointStiffness [RCBasic Doc]
#header sub setJointStiffness( joint_id, stiffness)

View File

@@ -0,0 +1,4 @@
#title setSpriteAngularDamping [RCBasic Doc]
#header sub setSpriteAngularDamping( spr_id, angularDamping)

View File

@@ -0,0 +1,4 @@
#title setSpriteAngularVelocity [RCBasic Doc]
#header sub setSpriteAngularVelocity( spr_id, av)

View File

@@ -0,0 +1,4 @@
#title setSpriteAwake [RCBasic Doc]
#header sub setSpriteAwake( spr_id, flag)

View File

@@ -0,0 +1,4 @@
#title setSpriteBullet [RCBasic Doc]
#header sub setSpriteBullet( spr_id, flag)

View File

@@ -0,0 +1,4 @@
#title setSpriteFixedRotation [RCBasic Doc]
#header sub setSpriteFixedRotation( spr_id, flag)

View File

@@ -0,0 +1,4 @@
#title setSpriteGravityScale [RCBasic Doc]
#header sub setSpriteGravityScale( spr_id, g_scale)

View File

@@ -0,0 +1,4 @@
#title setSpriteLinearDamping [RCBasic Doc]
#header sub setSpriteLinearDamping( spr_id, linearDamping)

View File

@@ -0,0 +1,4 @@
#title setSpriteLinearVelocity [RCBasic Doc]
#header sub setSpriteLinearVelocity( spr_id, x, y)

View File

@@ -0,0 +1,4 @@
#title setSpriteSleepAllowed [RCBasic Doc]
#header sub setSpriteSleepAllowed( spr_id, flag)

View File

@@ -0,0 +1,4 @@
#title spriteIsAwake [RCBasic Doc]
#header function spriteIsAwake( spr_id)

Some files were not shown because too many files have changed in this diff Show More