From 14f87ecbf11fd9c3f90779fa7daffa092bfb141a Mon Sep 17 00:00:00 2001
From: n00b sub applySpriteAngularImpulse( spr_id, impulse)
+ Apply an angular impulse to a body. This method affects the body’s rotational motion, changing its angular velocity based on the impulse applied. +
+Related: + ApplySpriteLinearImpulse +
++ + + \ No newline at end of file diff --git a/doc/doc_files/applyspritecentralforce.html b/doc/doc_files/applyspritecentralforce.html new file mode 100644 index 0000000..eb93348 --- /dev/null +++ b/doc/doc_files/applyspritecentralforce.html @@ -0,0 +1,17 @@ + + +
+ + ++ Apply a continuous force to a body at its center of mass, regardless of the body's current orientation. This method affects the body's linear motion and is useful for simulating forces like gravity, wind, or any other directional force. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/applyspriteforce.html b/doc/doc_files/applyspriteforce.html new file mode 100644 index 0000000..86ec72c --- /dev/null +++ b/doc/doc_files/applyspriteforce.html @@ -0,0 +1,17 @@ + + +
+ + ++ Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. This wakes up the body. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/applyspritelinearimpulse.html b/doc/doc_files/applyspritelinearimpulse.html new file mode 100644 index 0000000..9a24e77 --- /dev/null +++ b/doc/doc_files/applyspritelinearimpulse.html @@ -0,0 +1,20 @@ + + +
+ + ++ Apply an instantaneous linear impulse to a body. This method directly affects the body’s linear motion by changing its velocity based on the impulse applied. +
+Related: + ApplySpriteAngularImpulse +
++ + + \ No newline at end of file diff --git a/doc/doc_files/applyspritetorque.html b/doc/doc_files/applyspritetorque.html new file mode 100644 index 0000000..c0aa765 --- /dev/null +++ b/doc/doc_files/applyspritetorque.html @@ -0,0 +1,17 @@ + + +
+ + ++ Apply a torque. This affects the angular velocity without affecting the linear velocity of the center of mass. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/box3d.html b/doc/doc_files/box3d.html new file mode 100644 index 0000000..d8dd34b --- /dev/null +++ b/doc/doc_files/box3d.html @@ -0,0 +1,17 @@ + + +
+ + ++ Draws a box in 3D space +
++ + + \ No newline at end of file diff --git a/doc/doc_files/castray2d.html b/doc/doc_files/castray2d.html new file mode 100644 index 0000000..c460985 --- /dev/null +++ b/doc/doc_files/castray2d.html @@ -0,0 +1,30 @@ + + +
+ + ++ Cast a ray and get the closest hit on the ray +
++ Returns 1 if there is a hit and 0 if not +
++ NOTE: GetRayHit2D is used to read each hit +
+Related: + GetRayHit3D + CastRay3D + CastRay3D_All + CastRay2D_All + GetRayHit2D +
++ + + \ No newline at end of file diff --git a/doc/doc_files/castray2d_all.html b/doc/doc_files/castray2d_all.html new file mode 100644 index 0000000..2b2f9bb --- /dev/null +++ b/doc/doc_files/castray2d_all.html @@ -0,0 +1,30 @@ + + +
+ + ++ Cast a ray and gets all hits on the ray +
++ Returns the number of hits from the ray cast +
++ NOTE: GetRayHit2D is used to read each hit +
+Related: + GetRayHit3D + CastRay3D + CastRay3D_All + CastRay2D + GetRayHit2D +
++ + + \ No newline at end of file diff --git a/doc/doc_files/castray3d.html b/doc/doc_files/castray3d.html new file mode 100644 index 0000000..0847b09 --- /dev/null +++ b/doc/doc_files/castray3d.html @@ -0,0 +1,30 @@ + + +
+ + ++ Cast a ray and get the closest hit on the ray +
++ Returns 1 if there is a hit and 0 if not +
++ NOTE: GetRayHit3D is used to read each hit +
+Related: + GetRayHit3D + CastRay3D_All + CastRay2D + CastRay2D_All + GetRayHit2D +
++ + + \ No newline at end of file diff --git a/doc/doc_files/castray3d_all.html b/doc/doc_files/castray3d_all.html new file mode 100644 index 0000000..38fdbfa --- /dev/null +++ b/doc/doc_files/castray3d_all.html @@ -0,0 +1,30 @@ + + +
+ + ++ Cast a ray and gets all hits on the ray +
++ Returns the number of hits from the ray cast +
++ NOTE: GetRayHit3D is used to read each hit +
+Related: + GetRayHit3D + CastRay3D + CastRay2D + CastRay2D_All + GetRayHit2D +
++ + + \ No newline at end of file diff --git a/doc/doc_files/clearscene.html b/doc/doc_files/clearscene.html new file mode 100644 index 0000000..4f4882f --- /dev/null +++ b/doc/doc_files/clearscene.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/createconemesh.html b/doc/doc_files/createconemesh.html new file mode 100644 index 0000000..469460b --- /dev/null +++ b/doc/doc_files/createconemesh.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/createcylindermesh.html b/doc/doc_files/createcylindermesh.html new file mode 100644 index 0000000..17db61b --- /dev/null +++ b/doc/doc_files/createcylindermesh.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/createdistancejoint.html b/doc/doc_files/createdistancejoint.html new file mode 100644 index 0000000..8399d24 --- /dev/null +++ b/doc/doc_files/createdistancejoint.html @@ -0,0 +1,37 @@ + + +
+ + ++ Creates a distance joint +
++ A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod. +
++ Parameters +
++ + + \ No newline at end of file diff --git a/doc/doc_files/createfrictionjoint.html b/doc/doc_files/createfrictionjoint.html new file mode 100644 index 0000000..a8365fd --- /dev/null +++ b/doc/doc_files/createfrictionjoint.html @@ -0,0 +1,34 @@ + + +
+ + ++ Creates a Friction Joint +
++ Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction. +
++ Parameters +
++ + + \ No newline at end of file diff --git a/doc/doc_files/creategearjoint.html b/doc/doc_files/creategearjoint.html new file mode 100644 index 0000000..d8917f5 --- /dev/null +++ b/doc/doc_files/creategearjoint.html @@ -0,0 +1,34 @@ + + +
+ + ++ Creates a Gear Joint +
++ A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joint. You specify a gear ratio to bind the motions together: coordinate1 + ratio * coordinate2 = constant The ratio can be negative or positive. If one joint is a revolute joint and the other joint is a prismatic joint, then the ratio will have units of length or units of 1/length. +
++ Parameters +
++ + + \ No newline at end of file diff --git a/doc/doc_files/createmotorjoint.html b/doc/doc_files/createmotorjoint.html new file mode 100644 index 0000000..68fb28d --- /dev/null +++ b/doc/doc_files/createmotorjoint.html @@ -0,0 +1,20 @@ + + +
+ + ++ Creates a Motor Joint +
++ A motor joint is used to control the relative motion between two bodies. A typical usage is to control the movement of a dynamic body with respect to the ground. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/createprismaticjoint.html b/doc/doc_files/createprismaticjoint.html new file mode 100644 index 0000000..ded3010 --- /dev/null +++ b/doc/doc_files/createprismaticjoint.html @@ -0,0 +1,37 @@ + + +
+ + ++ Creates a Prismatic Joint +
++ A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in bodyA. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction. +
++ Parameters +
++ + + \ No newline at end of file diff --git a/doc/doc_files/createpulleyjoint.html b/doc/doc_files/createpulleyjoint.html new file mode 100644 index 0000000..2132eac --- /dev/null +++ b/doc/doc_files/createpulleyjoint.html @@ -0,0 +1,20 @@ + + +
+ + ++ Creates a pulley joint +
++ The pulley joint is connected to two bodies and two fixed ground points. The pulley supports a ratio such that: length1 + ratio * length2 <= constant Yes, the force transmitted is scaled by the ratio. Warning: the pulley joint can get a bit squirrelly by itself. They often work better when combined with prismatic joints. You should also cover the the anchor points with static shapes to prevent one side from going to zero length. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/createrevolutejoint.html b/doc/doc_files/createrevolutejoint.html new file mode 100644 index 0000000..4dabc72 --- /dev/null +++ b/doc/doc_files/createrevolutejoint.html @@ -0,0 +1,20 @@ + + +
+ + ++ Creates a revolute joint +
++ A revolute joint constrains two bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/createvolumelightmesh.html b/doc/doc_files/createvolumelightmesh.html new file mode 100644 index 0000000..360b576 --- /dev/null +++ b/doc/doc_files/createvolumelightmesh.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/createweldjoint.html b/doc/doc_files/createweldjoint.html new file mode 100644 index 0000000..96a885a --- /dev/null +++ b/doc/doc_files/createweldjoint.html @@ -0,0 +1,20 @@ + + +
+ + ++ Creates a Weld Joint +
++ A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/createwheeljoint.html b/doc/doc_files/createwheeljoint.html new file mode 100644 index 0000000..0b74ef5 --- /dev/null +++ b/doc/doc_files/createwheeljoint.html @@ -0,0 +1,20 @@ + + +
+ + ++ Creates a wheel joint. +
++ A wheel joint. This joint provides two degrees of freedom: translation along an axis fixed in bodyA and rotation in the plane. In other words, it is a point to line constraint with a rotational motor and a linear spring/damper. The spring/damper is initialized upon creation. This joint is designed for vehicle suspensions. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/deletean8.html b/doc/doc_files/deletean8.html new file mode 100644 index 0000000..08a5c7f --- /dev/null +++ b/doc/doc_files/deletean8.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/deletejoint.html b/doc/doc_files/deletejoint.html new file mode 100644 index 0000000..d2f63f4 --- /dev/null +++ b/doc/doc_files/deletejoint.html @@ -0,0 +1,28 @@ + + +
+ + ++ Clears a joint from memory +
+Related: + CreateDistanceJoint + CreateFrictionJoint + CreateGearJoint + CreateMotorJoint + CreatePrismaticJoint + CreatePulleyJoint + CreateRevoluteJoint + CreateWeldJoint + CreateWheelJoint +
++ + + \ No newline at end of file diff --git a/doc/doc_files/deletetilemap.html b/doc/doc_files/deletetilemap.html new file mode 100644 index 0000000..fc1d742 --- /dev/null +++ b/doc/doc_files/deletetilemap.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/deletetileset.html b/doc/doc_files/deletetileset.html new file mode 100644 index 0000000..926b1ea --- /dev/null +++ b/doc/doc_files/deletetileset.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/enablejointlimit.html b/doc/doc_files/enablejointlimit.html new file mode 100644 index 0000000..0fb2cf1 --- /dev/null +++ b/doc/doc_files/enablejointlimit.html @@ -0,0 +1,35 @@ + + +
+ + ++ Enables or disables joint limits +
++ Used with +
+Related: + JointIsLimitEnabled + SetJointLimits +
++ + + \ No newline at end of file diff --git a/doc/doc_files/enablejointmotor.html b/doc/doc_files/enablejointmotor.html new file mode 100644 index 0000000..53ea4f5 --- /dev/null +++ b/doc/doc_files/enablejointmotor.html @@ -0,0 +1,34 @@ + + +
+ + ++ Enables or disables the joint motor +
++ Used with +
+Related: + JointMotorIsEnabled +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getactorcenter.html b/doc/doc_files/getactorcenter.html new file mode 100644 index 0000000..b30ca6b --- /dev/null +++ b/doc/doc_files/getactorcenter.html @@ -0,0 +1,17 @@ + + +
+ + ++ Gets an actor's center of mass position. This is useful for setting the origin of constraints. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getactorcollisionshape.html b/doc/doc_files/getactorcollisionshape.html index e920a80..01a11dc 100644 --- a/doc/doc_files/getactorcollisionshape.html +++ b/doc/doc_files/getactorcollisionshape.html @@ -16,28 +16,28 @@
Related: diff --git a/doc/doc_files/getactorvelocityinlocalpoint.html b/doc/doc_files/getactorvelocityinlocalpoint.html new file mode 100644 index 0000000..3b80b6d --- /dev/null +++ b/doc/doc_files/getactorvelocityinlocalpoint.html @@ -0,0 +1,17 @@ + + +
+ + ++ Gets the linear velocity of a specific point on an actor, given its position in the actor's local coordinate space. This is useful for determining how fast and in what direction a particular point on the actor is moving, accounting for both the body's linear velocity and its rotational motion (angular velocity). +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getantialiasmode.html b/doc/doc_files/getantialiasmode.html new file mode 100644 index 0000000..f16a191 --- /dev/null +++ b/doc/doc_files/getantialiasmode.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointangle.html b/doc/doc_files/getjointangle.html new file mode 100644 index 0000000..461bed3 --- /dev/null +++ b/doc/doc_files/getjointangle.html @@ -0,0 +1,28 @@ + + +
+ + ++ Returns the current joint angle +
++ Used with +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointangularoffset.html b/doc/doc_files/getjointangularoffset.html new file mode 100644 index 0000000..7472f1b --- /dev/null +++ b/doc/doc_files/getjointangularoffset.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the target angular offset +
++ Used with Motor Joint +
+Related: + SetJointAngularOffset +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointangularspeed.html b/doc/doc_files/getjointangularspeed.html new file mode 100644 index 0000000..9a380dc --- /dev/null +++ b/doc/doc_files/getjointangularspeed.html @@ -0,0 +1,20 @@ + + +
+ + ++ Return the current joint angular speed +
++ Used with Wheel Joint +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointcorrectionfactor.html b/doc/doc_files/getjointcorrectionfactor.html new file mode 100644 index 0000000..ec2786d --- /dev/null +++ b/doc/doc_files/getjointcorrectionfactor.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns a factor for how quickly the joint corrects deviations from its target position and rotation. This correction factor determines the responsiveness of the motor joint in achieving the desired linear and angular offsets between two connected bodies. +
++ Used with Motor Joints +
+Related: + GetJointCorrectionFactor +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointcurrentlength.html b/doc/doc_files/getjointcurrentlength.html new file mode 100644 index 0000000..a12fad9 --- /dev/null +++ b/doc/doc_files/getjointcurrentlength.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the current distance between BodyA and BodyB +
++ Used with Distance Joint +
+Related: + GetJointLength +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointcurrentlengtha.html b/doc/doc_files/getjointcurrentlengtha.html new file mode 100644 index 0000000..7831fa0 --- /dev/null +++ b/doc/doc_files/getjointcurrentlengtha.html @@ -0,0 +1,23 @@ + + +
+ + ++ Return the current length of the segment attached to bodyA. +
++ Used with Pulley Joint +
+Related: + GetJointCurrentLengthB +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointcurrentlengthb.html b/doc/doc_files/getjointcurrentlengthb.html new file mode 100644 index 0000000..e1c0ce2 --- /dev/null +++ b/doc/doc_files/getjointcurrentlengthb.html @@ -0,0 +1,23 @@ + + +
+ + ++ Return the current length of the segment attached to bodyB. +
++ Used with Pulley Joint +
+Related: + GetJointCurrentLengthA +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointdamping.html b/doc/doc_files/getjointdamping.html new file mode 100644 index 0000000..5358486 --- /dev/null +++ b/doc/doc_files/getjointdamping.html @@ -0,0 +1,34 @@ + + +
+ + ++ Returns the damping value for a joint +
++ Used with +
+Related: + SetJointDamping +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointgroundanchora.html b/doc/doc_files/getjointgroundanchora.html new file mode 100644 index 0000000..15e94a4 --- /dev/null +++ b/doc/doc_files/getjointgroundanchora.html @@ -0,0 +1,23 @@ + + +
+ + ++ Gets the first ground anchor +
++ Used with Pulley Joint +
+Related: + GetJointGroundAnchorB +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointgroundanchorb.html b/doc/doc_files/getjointgroundanchorb.html new file mode 100644 index 0000000..a48bbad --- /dev/null +++ b/doc/doc_files/getjointgroundanchorb.html @@ -0,0 +1,23 @@ + + +
+ + ++ Gets the second ground anchor +
++ Used with Pulley Joint +
+Related: + GetJointGroundAnchorA +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlength.html b/doc/doc_files/getjointlength.html new file mode 100644 index 0000000..76e0b9a --- /dev/null +++ b/doc/doc_files/getjointlength.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the Joint Length +
++ Used with distance Joints +
+Related: + SetJointLength +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlengtha.html b/doc/doc_files/getjointlengtha.html new file mode 100644 index 0000000..bbb26a4 --- /dev/null +++ b/doc/doc_files/getjointlengtha.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the current length of the line connecting the anchor point on the first body to its corresponding ground anchor. This length can vary based on the movement of the connected bodies. +
++ Used with Pulley Joints +
+Related: + GetJointLengthB +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlengthb.html b/doc/doc_files/getjointlengthb.html new file mode 100644 index 0000000..0a078b6 --- /dev/null +++ b/doc/doc_files/getjointlengthb.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the current length of the line connecting the anchor point on the second body to its corresponding ground anchor. This length can vary based on the movement of the connected bodies. +
++ Used with Pulley Joints +
+Related: + GetJointLengthA +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlinearoffset.html b/doc/doc_files/getjointlinearoffset.html new file mode 100644 index 0000000..4561599 --- /dev/null +++ b/doc/doc_files/getjointlinearoffset.html @@ -0,0 +1,23 @@ + + +
+ + ++ Gets the target position offset for the connected bodies relative to each other. +
++ Used with Motor Joints +
+Related: + SetJointLinearOffset +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlinearspeed.html b/doc/doc_files/getjointlinearspeed.html new file mode 100644 index 0000000..1aa5aac --- /dev/null +++ b/doc/doc_files/getjointlinearspeed.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the current joint linear speed, usually in meters per second. +
++ Used with Wheel Joint +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlocalanchora.html b/doc/doc_files/getjointlocalanchora.html new file mode 100644 index 0000000..502a4eb --- /dev/null +++ b/doc/doc_files/getjointlocalanchora.html @@ -0,0 +1,40 @@ + + +
+ + ++ Returns the local anchor point relative to bodyA's origin. +
+Related: + GetJointLocalAnchorB +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlocalanchorb.html b/doc/doc_files/getjointlocalanchorb.html new file mode 100644 index 0000000..1b6f117 --- /dev/null +++ b/doc/doc_files/getjointlocalanchorb.html @@ -0,0 +1,40 @@ + + +
+ + ++ Returns the local anchor point relative to bodyB's origin. +
+Related: + GetJointLocalAnchorA +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlocalaxisa.html b/doc/doc_files/getjointlocalaxisa.html new file mode 100644 index 0000000..c1e934c --- /dev/null +++ b/doc/doc_files/getjointlocalaxisa.html @@ -0,0 +1,28 @@ + + +
+ + ++ Gets the local joint axis relative to bodyA +
++ Used with +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointlowerlimit.html b/doc/doc_files/getjointlowerlimit.html new file mode 100644 index 0000000..6fedb2c --- /dev/null +++ b/doc/doc_files/getjointlowerlimit.html @@ -0,0 +1,34 @@ + + +
+ + ++ Get the lower joint translation limit, usually in meters. +
++ Used with +
+Related: + GetJointUpperLimit +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmaxforce.html b/doc/doc_files/getjointmaxforce.html new file mode 100644 index 0000000..bcc6be7 --- /dev/null +++ b/doc/doc_files/getjointmaxforce.html @@ -0,0 +1,28 @@ + + +
+ + ++ Return the maximum friction force in N. +
++ Used with +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmaxlength.html b/doc/doc_files/getjointmaxlength.html new file mode 100644 index 0000000..ba5f227 --- /dev/null +++ b/doc/doc_files/getjointmaxlength.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the maximum length +
++ Used with Distance Joint +
+Related: + GetJointMinLength +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmaxmotorforce.html b/doc/doc_files/getjointmaxmotorforce.html new file mode 100644 index 0000000..f91df43 --- /dev/null +++ b/doc/doc_files/getjointmaxmotorforce.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the maximum linear force that the motor can apply to achieve the target speed set by SetMotorSpeed. This allows you to control the power or strength of the motor along the joint’s axis. +
++ Used with Prismatic Joint +
+Related: + SetJointMaxMotorForce +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmaxmotortorque.html b/doc/doc_files/getjointmaxmotortorque.html new file mode 100644 index 0000000..30ca2ae --- /dev/null +++ b/doc/doc_files/getjointmaxmotortorque.html @@ -0,0 +1,31 @@ + + +
+ + ++ Returns the maximum torque (rotational force) that the motor can apply to achieve the target motor speed set by SetMotorSpeed. This allows you to control how much power the motorized joint has. +
++ Used with +
+Related: + SetJointMaxMotorTorque +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmaxtorque.html b/doc/doc_files/getjointmaxtorque.html new file mode 100644 index 0000000..549db1e --- /dev/null +++ b/doc/doc_files/getjointmaxtorque.html @@ -0,0 +1,31 @@ + + +
+ + ++ Returns the upper limit on the amount of torque (rotational force) the joint can apply, controlling how much rotational resistance or power the joint provides. +
++ Used with +
+Related: + SetJointMaxTorque +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointminlength.html b/doc/doc_files/getjointminlength.html new file mode 100644 index 0000000..5ec0d93 --- /dev/null +++ b/doc/doc_files/getjointminlength.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the minimum length +
++ Used with Distance Joint +
+Related: + GetJointMaxLength +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmotorforce.html b/doc/doc_files/getjointmotorforce.html new file mode 100644 index 0000000..2aec882 --- /dev/null +++ b/doc/doc_files/getjointmotorforce.html @@ -0,0 +1,23 @@ + + +
+ + ++ Return the current motor force given the inverse time step, usually in N. +
++ Used with Prismatic Joint +
+Related: + SetJointMotorForce +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmotorspeed.html b/doc/doc_files/getjointmotorspeed.html new file mode 100644 index 0000000..c8f91ec --- /dev/null +++ b/doc/doc_files/getjointmotorspeed.html @@ -0,0 +1,34 @@ + + +
+ + ++ Returns the motor speed +
++ Used with +
+Related: + SetJointMotorSpeed +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointmotortorque.html b/doc/doc_files/getjointmotortorque.html new file mode 100644 index 0000000..a232663 --- /dev/null +++ b/doc/doc_files/getjointmotortorque.html @@ -0,0 +1,32 @@ + + +
+ + ++ Returns the current motor torque given the inverse time step. Unit is N*m. +
++ Used with +
+Related: + GetJointMaxMotorTorque + SetJointMaxMotorTorque +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointratio.html b/doc/doc_files/getjointratio.html new file mode 100644 index 0000000..25ceffb --- /dev/null +++ b/doc/doc_files/getjointratio.html @@ -0,0 +1,31 @@ + + +
+ + ++ Returns the gear/pulley ratio +
++ Used with +
+Related: + SetJointRatio +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointreactionforce.html b/doc/doc_files/getjointreactionforce.html new file mode 100644 index 0000000..077797a --- /dev/null +++ b/doc/doc_files/getjointreactionforce.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the reaction force on bodyB at the joint anchor in Newtons. +
++ Can be used with all joints +
+Related: + GetJointReactionTorque +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointreactiontorque.html b/doc/doc_files/getjointreactiontorque.html new file mode 100644 index 0000000..119be76 --- /dev/null +++ b/doc/doc_files/getjointreactiontorque.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the reaction torque on bodyB in N*m +
++ Can be used with all joints +
+Related: + GetJointReactionForce +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointreferenceangle.html b/doc/doc_files/getjointreferenceangle.html new file mode 100644 index 0000000..f7727de --- /dev/null +++ b/doc/doc_files/getjointreferenceangle.html @@ -0,0 +1,28 @@ + + +
+ + ++ Returns the reference angle. +
++ Used with +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointspeed.html b/doc/doc_files/getjointspeed.html new file mode 100644 index 0000000..aded632 --- /dev/null +++ b/doc/doc_files/getjointspeed.html @@ -0,0 +1,28 @@ + + +
+ + ++ Returns the current joint angle speed +
++ Used with +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointstiffness.html b/doc/doc_files/getjointstiffness.html new file mode 100644 index 0000000..216095a --- /dev/null +++ b/doc/doc_files/getjointstiffness.html @@ -0,0 +1,34 @@ + + +
+ + ++ Returns spring stiffness +
++ Used with +
+Related: + SetJointStiffness +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointtranslation.html b/doc/doc_files/getjointtranslation.html new file mode 100644 index 0000000..e11406d --- /dev/null +++ b/doc/doc_files/getjointtranslation.html @@ -0,0 +1,28 @@ + + +
+ + ++ Returns the current joint translation, usually in meters. +
++ Used with +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointupperlimit.html b/doc/doc_files/getjointupperlimit.html new file mode 100644 index 0000000..8ce9b4c --- /dev/null +++ b/doc/doc_files/getjointupperlimit.html @@ -0,0 +1,34 @@ + + +
+ + ++ Get the upper joint translation limit, usually in meters. +
++ Used with +
+Related: + GetJointLowerLimit +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointworldanchora.html b/doc/doc_files/getjointworldanchora.html new file mode 100644 index 0000000..36b589c --- /dev/null +++ b/doc/doc_files/getjointworldanchora.html @@ -0,0 +1,23 @@ + + +
+ + ++ Get the anchor point on bodyA in world coordinates. +
++ Can be used with all joints +
+Related: + GetJointWorldAnchorB +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getjointworldanchorb.html b/doc/doc_files/getjointworldanchorb.html new file mode 100644 index 0000000..3b4818e --- /dev/null +++ b/doc/doc_files/getjointworldanchorb.html @@ -0,0 +1,23 @@ + + +
+ + ++ Get the anchor point on bodyB in world coordinates. +
++ Can be used with all joints +
+Related: + GetJointWorldAnchorA +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getrayhit2d.html b/doc/doc_files/getrayhit2d.html new file mode 100644 index 0000000..a3cd111 --- /dev/null +++ b/doc/doc_files/getrayhit2d.html @@ -0,0 +1,35 @@ + + +
+ + ++ This function will get the collision point and the normal of a ray hit. +
++ NOTES: +
+Related: + GetRayHit3D + CastRay3D + CastRay3D_All + CastRay2D + CastRay2D_All +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getrayhit3d.html b/doc/doc_files/getrayhit3d.html new file mode 100644 index 0000000..83d13c6 --- /dev/null +++ b/doc/doc_files/getrayhit3d.html @@ -0,0 +1,35 @@ + + +
+ + ++ This function will get the collision point and the normal of a ray hit. +
++ NOTES: +
+Related: + CastRay3D + CastRay3D_All + CastRay2D + CastRay2D_All + GetRayHit2D +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getscenefog.html b/doc/doc_files/getscenefog.html new file mode 100644 index 0000000..14080f8 --- /dev/null +++ b/doc/doc_files/getscenefog.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteaabb.html b/doc/doc_files/getspriteaabb.html new file mode 100644 index 0000000..cf0e4b6 --- /dev/null +++ b/doc/doc_files/getspriteaabb.html @@ -0,0 +1,17 @@ + + +
+ + ++ Returns the axis aligned bounding box for a sprite +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritealpha.html b/doc/doc_files/getspritealpha.html new file mode 100644 index 0000000..f5cd21c --- /dev/null +++ b/doc/doc_files/getspritealpha.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteangulardamping.html b/doc/doc_files/getspriteangulardamping.html new file mode 100644 index 0000000..5f162b7 --- /dev/null +++ b/doc/doc_files/getspriteangulardamping.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns a sprite's angular damping +
+Related: + ApplySpriteAngularDamping +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteangularvelocity.html b/doc/doc_files/getspriteangularvelocity.html new file mode 100644 index 0000000..86ff4b9 --- /dev/null +++ b/doc/doc_files/getspriteangularvelocity.html @@ -0,0 +1,17 @@ + + +
+ + ++ Returns the angular velocity +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteboxsize.html b/doc/doc_files/getspriteboxsize.html new file mode 100644 index 0000000..bbb5848 --- /dev/null +++ b/doc/doc_files/getspriteboxsize.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the size of the collision box on a sprite. +
++ NOTE: Returns (-1, -1) if the collision shape is not a box +
+Related: + SetSpriteBox +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritecenter.html b/doc/doc_files/getspritecenter.html new file mode 100644 index 0000000..4b15521 --- /dev/null +++ b/doc/doc_files/getspritecenter.html @@ -0,0 +1,17 @@ + + +
+ + ++ Returns a sprites center of mass +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritecollisionshape.html b/doc/doc_files/getspritecollisionshape.html new file mode 100644 index 0000000..e314284 --- /dev/null +++ b/doc/doc_files/getspritecollisionshape.html @@ -0,0 +1,37 @@ + + +
+ + ++ Returns the collision shape of a sprite +
++ Shape Types: +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritecolormod.html b/doc/doc_files/getspritecolormod.html new file mode 100644 index 0000000..26f50f3 --- /dev/null +++ b/doc/doc_files/getspritecolormod.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritedensity.html b/doc/doc_files/getspritedensity.html new file mode 100644 index 0000000..5453506 --- /dev/null +++ b/doc/doc_files/getspritedensity.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the density of a sprite. Higher density means a heavier sprite. +
+Related: + SetSpriteDensity +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritefriction.html b/doc/doc_files/getspritefriction.html new file mode 100644 index 0000000..1c8b2dc --- /dev/null +++ b/doc/doc_files/getspritefriction.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns a sprite's friction +
+Related: + GetSpriteFriction +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritegravityscale.html b/doc/doc_files/getspritegravityscale.html new file mode 100644 index 0000000..6c5c398 --- /dev/null +++ b/doc/doc_files/getspritegravityscale.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns a sprite's gravity scale +
+Related: + SetSpriteGravityScale +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteinertia.html b/doc/doc_files/getspriteinertia.html new file mode 100644 index 0000000..eeb916f --- /dev/null +++ b/doc/doc_files/getspriteinertia.html @@ -0,0 +1,17 @@ + + +
+ + ++ Returns the rotational inertia of the body about the local origin. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritelineardamping.html b/doc/doc_files/getspritelineardamping.html new file mode 100644 index 0000000..afe2642 --- /dev/null +++ b/doc/doc_files/getspritelineardamping.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns a sprite's linear damping value +
+Related: + SetSpriteLinearDamping +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritelinearvelocity.html b/doc/doc_files/getspritelinearvelocity.html new file mode 100644 index 0000000..f64f442 --- /dev/null +++ b/doc/doc_files/getspritelinearvelocity.html @@ -0,0 +1,20 @@ + + +
+ + ++ Gets the linear velocity of a sprite +
+Related: + SetSpriteLinearVelocity +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritelinearvelocityfromlocalpoint.html b/doc/doc_files/getspritelinearvelocityfromlocalpoint.html new file mode 100644 index 0000000..06096bf --- /dev/null +++ b/doc/doc_files/getspritelinearvelocityfromlocalpoint.html @@ -0,0 +1,17 @@ + + +
+ + ++ Get the world velocity of a local point. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritelinearvelocityfromworldpoint.html b/doc/doc_files/getspritelinearvelocityfromworldpoint.html new file mode 100644 index 0000000..c1c7785 --- /dev/null +++ b/doc/doc_files/getspritelinearvelocityfromworldpoint.html @@ -0,0 +1,17 @@ + + +
+ + ++ Get the world linear velocity of a world point attached to this body. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritelocalpoint.html b/doc/doc_files/getspritelocalpoint.html new file mode 100644 index 0000000..73801d3 --- /dev/null +++ b/doc/doc_files/getspritelocalpoint.html @@ -0,0 +1,17 @@ + + +
+ + ++ Gets a local point relative to the body's origin given a world point. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritelocalvector.html b/doc/doc_files/getspritelocalvector.html new file mode 100644 index 0000000..65102dd --- /dev/null +++ b/doc/doc_files/getspritelocalvector.html @@ -0,0 +1,17 @@ + + +
+ + ++ Gets a local vector given a world vector. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspritemass.html b/doc/doc_files/getspritemass.html new file mode 100644 index 0000000..c008332 --- /dev/null +++ b/doc/doc_files/getspritemass.html @@ -0,0 +1,17 @@ + + +
+ + ++ Returns the total mass of the body. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteradius.html b/doc/doc_files/getspriteradius.html new file mode 100644 index 0000000..134c51f --- /dev/null +++ b/doc/doc_files/getspriteradius.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns the radius of a sprites collision shape +
++ NOTE: Returns 0 if collision shape is not SPRITE_SHAPE_CIRCLE +
+Related: + SetSpriteRadius +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriterestitution.html b/doc/doc_files/getspriterestitution.html new file mode 100644 index 0000000..a1e2874 --- /dev/null +++ b/doc/doc_files/getspriterestitution.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the restitution coefficient for a sprite +
+Related: + SetSpriteRestitution +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriterestitutionthreshold.html b/doc/doc_files/getspriterestitutionthreshold.html new file mode 100644 index 0000000..db7b8c3 --- /dev/null +++ b/doc/doc_files/getspriterestitutionthreshold.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the restitution velocity threshold for a sprite +
+Related: + SetSpriteRestitutionThreshold +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteworldpoint.html b/doc/doc_files/getspriteworldpoint.html new file mode 100644 index 0000000..06dea76 --- /dev/null +++ b/doc/doc_files/getspriteworldpoint.html @@ -0,0 +1,17 @@ + + +
+ + ++ Get the world coordinates of a point given the local coordinates. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getspriteworldvector.html b/doc/doc_files/getspriteworldvector.html new file mode 100644 index 0000000..8834504 --- /dev/null +++ b/doc/doc_files/getspriteworldvector.html @@ -0,0 +1,17 @@ + + +
+ + ++ Get the world coordinates of a vector given the local coordinates. +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getworld2dautoclearforces.html b/doc/doc_files/getworld2dautoclearforces.html new file mode 100644 index 0000000..5af419d --- /dev/null +++ b/doc/doc_files/getworld2dautoclearforces.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the auto clear forces flag for the active canvas +
+Related: + SetWorld2DAutoClearForces +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getworld2dpositioniterations.html b/doc/doc_files/getworld2dpositioniterations.html new file mode 100644 index 0000000..ffd8ebf --- /dev/null +++ b/doc/doc_files/getworld2dpositioniterations.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the number of position iterations for the position constraint solver +
+Related: + SetWorld2DPositionIterations +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getworld2dtimestep.html b/doc/doc_files/getworld2dtimestep.html new file mode 100644 index 0000000..b84826b --- /dev/null +++ b/doc/doc_files/getworld2dtimestep.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the timestep for the active canvas +
+Related: + SetWorld2DTimeStep +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getworld2dvelocityiterations.html b/doc/doc_files/getworld2dvelocityiterations.html new file mode 100644 index 0000000..71f9578 --- /dev/null +++ b/doc/doc_files/getworld2dvelocityiterations.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns the number of velocity iterations for the velocity constraint solver +
+Related: + SetWorld2DVelocityIterations +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getworld3dmaxsubsteps.html b/doc/doc_files/getworld3dmaxsubsteps.html new file mode 100644 index 0000000..ea0bf7a --- /dev/null +++ b/doc/doc_files/getworld3dmaxsubsteps.html @@ -0,0 +1,17 @@ + + +
+ + ++ Returns the maximum substeps in the 3d physics time step +
++ + + \ No newline at end of file diff --git a/doc/doc_files/getworld3dtimestep.html b/doc/doc_files/getworld3dtimestep.html new file mode 100644 index 0000000..efa3afc --- /dev/null +++ b/doc/doc_files/getworld3dtimestep.html @@ -0,0 +1,17 @@ + + +
+ + ++ Returns the timestep of the 3d physics simulation +
++ + + \ No newline at end of file diff --git a/doc/doc_files/jointexists.html b/doc/doc_files/jointexists.html new file mode 100644 index 0000000..dd2208e --- /dev/null +++ b/doc/doc_files/jointexists.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/jointislimitenabled.html b/doc/doc_files/jointislimitenabled.html new file mode 100644 index 0000000..2c2acc0 --- /dev/null +++ b/doc/doc_files/jointislimitenabled.html @@ -0,0 +1,35 @@ + + +
+ + ++ Returns whether or not the joint limit is enabled +
++ Used with +
+Related: + EnableJointLimit + SetJointLimits +
++ + + \ No newline at end of file diff --git a/doc/doc_files/jointmotorisenabled.html b/doc/doc_files/jointmotorisenabled.html new file mode 100644 index 0000000..21c38d7 --- /dev/null +++ b/doc/doc_files/jointmotorisenabled.html @@ -0,0 +1,34 @@ + + +
+ + ++ Returns whether or not the joint motor is enabled +
++ Used with +
+Related: + EnableJointMotor +
++ + + \ No newline at end of file diff --git a/doc/doc_files/line3d.html b/doc/doc_files/line3d.html new file mode 100644 index 0000000..2fb3b2a --- /dev/null +++ b/doc/doc_files/line3d.html @@ -0,0 +1,17 @@ + + +
+ + ++ Draws a line in 3D space +
++ + + \ No newline at end of file diff --git a/doc/doc_files/nav_bottom.html b/doc/doc_files/nav_bottom.html index 9a84be7..cea7c8c 100644 --- a/doc/doc_files/nav_bottom.html +++ b/doc/doc_files/nav_bottom.html @@ -1393,6 +1393,24 @@ ul, #myUL {
+ + + \ No newline at end of file diff --git a/doc/doc_files/setactorcollisionshape.html b/doc/doc_files/setactorcollisionshape.html index 762c079..256580b 100644 --- a/doc/doc_files/setactorcollisionshape.html +++ b/doc/doc_files/setactorcollisionshape.html @@ -16,28 +16,28 @@
Related: diff --git a/doc/doc_files/setantialiasmode.html b/doc/doc_files/setantialiasmode.html new file mode 100644 index 0000000..f72fd6b --- /dev/null +++ b/doc/doc_files/setantialiasmode.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/setfps.html b/doc/doc_files/setfps.html new file mode 100644 index 0000000..a2e4ee4 --- /dev/null +++ b/doc/doc_files/setfps.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointangularoffset.html b/doc/doc_files/setjointangularoffset.html new file mode 100644 index 0000000..30c9ed2 --- /dev/null +++ b/doc/doc_files/setjointangularoffset.html @@ -0,0 +1,23 @@ + + +
+ + ++ Set the target angular offset +
++ Used with Motor Joint +
+Related: + GetJointAngularOffset +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointcorrectionfactor.html b/doc/doc_files/setjointcorrectionfactor.html new file mode 100644 index 0000000..4e332c1 --- /dev/null +++ b/doc/doc_files/setjointcorrectionfactor.html @@ -0,0 +1,23 @@ + + +
+ + ++ Sets how quickly the joint corrects deviations from its target position and rotation. This correction factor determines the responsiveness of the motor joint in achieving the desired linear and angular offsets between two connected bodies. +
++ Used with Motor Joints +
+Related: + GetJointCorrectionFactor +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointdamping.html b/doc/doc_files/setjointdamping.html new file mode 100644 index 0000000..e0387a2 --- /dev/null +++ b/doc/doc_files/setjointdamping.html @@ -0,0 +1,34 @@ + + +
+ + ++ Sets the damping value for a joint +
++ Used with +
+Related: + GetJointDamping +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointlength.html b/doc/doc_files/setjointlength.html new file mode 100644 index 0000000..9e4c2c3 --- /dev/null +++ b/doc/doc_files/setjointlength.html @@ -0,0 +1,23 @@ + + +
+ + ++ Set the fixed distance between two connected bodies. This distance acts as a "target length" that the joint will try to maintain, applying forces to keep the bodies at that separation. +
++ Used with distance Joints +
+Related: + GetJointLength +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointlimits.html b/doc/doc_files/setjointlimits.html new file mode 100644 index 0000000..78a2412 --- /dev/null +++ b/doc/doc_files/setjointlimits.html @@ -0,0 +1,35 @@ + + +
+ + ++ Sets the minimum and maximum limits, restricting how far or how much rotation the connected bodies can move relative to each other. +
++ Used with +
+Related: + GetJointLowerLimit + GetJointUpperLimit +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointlinearoffset.html b/doc/doc_files/setjointlinearoffset.html new file mode 100644 index 0000000..a38112c --- /dev/null +++ b/doc/doc_files/setjointlinearoffset.html @@ -0,0 +1,23 @@ + + +
+ + ++ Specify a target position offset for the connected bodies relative to each other. +
++ Used with Motor Joints +
+Related: + GetJointLinearOffset +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointmaxforce.html b/doc/doc_files/setjointmaxforce.html new file mode 100644 index 0000000..da1b6e0 --- /dev/null +++ b/doc/doc_files/setjointmaxforce.html @@ -0,0 +1,28 @@ + + +
+ + ++ Sets an upper limit on the amount of force the joint can apply to the connected bodies, helping to control how much resistance or power the joint provides. +
++ Used with +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointmaxlength.html b/doc/doc_files/setjointmaxlength.html new file mode 100644 index 0000000..14f5418 --- /dev/null +++ b/doc/doc_files/setjointmaxlength.html @@ -0,0 +1,23 @@ + + +
+ + ++ Set the maximum allowable length between two connected bodies +
++ Used with Distance Joint +
+Related: + SetJointMinLength +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointmaxmotorforce.html b/doc/doc_files/setjointmaxmotorforce.html new file mode 100644 index 0000000..2eec341 --- /dev/null +++ b/doc/doc_files/setjointmaxmotorforce.html @@ -0,0 +1,23 @@ + + +
+ + ++ Limits the maximum linear force that the motor can apply to achieve the target speed set by SetMotorSpeed. This allows you to control the power or strength of the motor along the joint’s axis. +
++ Used with Prismatic Joints +
+Related: + GetJointMaxMotorForce +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointmaxmotortorque.html b/doc/doc_files/setjointmaxmotortorque.html new file mode 100644 index 0000000..e523045 --- /dev/null +++ b/doc/doc_files/setjointmaxmotortorque.html @@ -0,0 +1,31 @@ + + +
+ + ++ Limits the maximum torque (rotational force) that the motor can apply to achieve the target motor speed set by SetMotorSpeed. This allows you to control how much power the motorized joint has. +
++ Used with +
+Related: + GetJointMaxMotorTorque +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointmaxtorque.html b/doc/doc_files/setjointmaxtorque.html new file mode 100644 index 0000000..6efd262 --- /dev/null +++ b/doc/doc_files/setjointmaxtorque.html @@ -0,0 +1,31 @@ + + +
+ + ++ Sets an upper limit on the amount of torque (rotational force) the joint can apply, controlling how much rotational resistance or power the joint provides. +
++ Used with +
+Related: + GetJointMaxTorque +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointminlength.html b/doc/doc_files/setjointminlength.html new file mode 100644 index 0000000..6a211d6 --- /dev/null +++ b/doc/doc_files/setjointminlength.html @@ -0,0 +1,23 @@ + + +
+ + ++ Set the minimum allowable length between two connected bodies +
++ Used with Distance Joint +
+Related: + SetJointMaxLength +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointmotorspeed.html b/doc/doc_files/setjointmotorspeed.html new file mode 100644 index 0000000..c422a78 --- /dev/null +++ b/doc/doc_files/setjointmotorspeed.html @@ -0,0 +1,34 @@ + + +
+ + ++ Used on joints that support motors, such as revolute joints and prismatic joints, to control the speed at which the motor applies force to achieve movement. +
++ Used with +
+Related: + GetJointMotorSpeed +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointorigin.html b/doc/doc_files/setjointorigin.html new file mode 100644 index 0000000..e10355f --- /dev/null +++ b/doc/doc_files/setjointorigin.html @@ -0,0 +1,20 @@ + + +
+ + ++ Shift the world origin. This is particularly useful in large simulations where objects might move far from the initial origin, potentially causing precision issues in floating-point calculations. +
++ Used with Pulley Joint +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointratio.html b/doc/doc_files/setjointratio.html new file mode 100644 index 0000000..7f3805e --- /dev/null +++ b/doc/doc_files/setjointratio.html @@ -0,0 +1,23 @@ + + +
+ + ++ Determines how much one joint’s movement affects the other, enabling complex, synchronized motion. +
++ Used with Gear Joints +
+Related: + GetJointRatio +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setjointstiffness.html b/doc/doc_files/setjointstiffness.html new file mode 100644 index 0000000..8d0aa77 --- /dev/null +++ b/doc/doc_files/setjointstiffness.html @@ -0,0 +1,34 @@ + + +
+ + ++ Sets how rigid a joint is +
++ Used with: +
+Related: + GetJointStiffness +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setscenefog.html b/doc/doc_files/setscenefog.html new file mode 100644 index 0000000..dc08ca1 --- /dev/null +++ b/doc/doc_files/setscenefog.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritealpha.html b/doc/doc_files/setspritealpha.html new file mode 100644 index 0000000..593dbac --- /dev/null +++ b/doc/doc_files/setspritealpha.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/setspriteangulardamping.html b/doc/doc_files/setspriteangulardamping.html new file mode 100644 index 0000000..f30c4ab --- /dev/null +++ b/doc/doc_files/setspriteangulardamping.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets a sprite's angular damping +
+Related: + GetSpriteAngularDamping +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspriteangularvelocity.html b/doc/doc_files/setspriteangularvelocity.html new file mode 100644 index 0000000..ace9ee9 --- /dev/null +++ b/doc/doc_files/setspriteangularvelocity.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the angular velocity of a sprite +
+Related: + GetSpriteAngularVelocity +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspriteawake.html b/doc/doc_files/setspriteawake.html new file mode 100644 index 0000000..1314f9e --- /dev/null +++ b/doc/doc_files/setspriteawake.html @@ -0,0 +1,17 @@ + + +
+ + ++ Sets a sprite's sleep state +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritebox.html b/doc/doc_files/setspritebox.html new file mode 100644 index 0000000..dc7e18b --- /dev/null +++ b/doc/doc_files/setspritebox.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the width and Height of a sprite collision box +
++ NOTE: Sprite collision shape must be SPRITE_SHAPE_BOX +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritebullet.html b/doc/doc_files/setspritebullet.html new file mode 100644 index 0000000..badf52c --- /dev/null +++ b/doc/doc_files/setspritebullet.html @@ -0,0 +1,23 @@ + + +
+ + ++ Sets whether body has continuous collision detection +
++ Note: Useful for fast moving objects +
+Related: + SpriteIsBullet +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritechain.html b/doc/doc_files/setspritechain.html new file mode 100644 index 0000000..2aab23c --- /dev/null +++ b/doc/doc_files/setspritechain.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the points in a collision chain +
++ NOTE: Sprite collision shape must be SPRITE_SHAPE_CHAIN +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritechainloop.html b/doc/doc_files/setspritechainloop.html new file mode 100644 index 0000000..a78c1e6 --- /dev/null +++ b/doc/doc_files/setspritechainloop.html @@ -0,0 +1,23 @@ + + +
+ + ++ Sets the points in a collision chain loop +
++ NOTE: Since it is a loop, the shape will be a closed +
++ NOTE: Sprite collision shape must be SPRITE_SHAPE_CHAIN +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritecollisionshape.html b/doc/doc_files/setspritecollisionshape.html new file mode 100644 index 0000000..a4eb2d9 --- /dev/null +++ b/doc/doc_files/setspritecollisionshape.html @@ -0,0 +1,44 @@ + + +
+ + ++ Sets the collision shape of a sprite +
++ Shape Types: +
+Related: + SetSpriteBox + SetSpriteRadius + SetSpriteChain + SetSpriteChainLoop + SetSpritePolygon +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritecolormod.html b/doc/doc_files/setspritecolormod.html new file mode 100644 index 0000000..3726533 --- /dev/null +++ b/doc/doc_files/setspritecolormod.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritedensity.html b/doc/doc_files/setspritedensity.html new file mode 100644 index 0000000..4912d66 --- /dev/null +++ b/doc/doc_files/setspritedensity.html @@ -0,0 +1,23 @@ + + +
+ + ++ Sets the density of a sprite. Higher density means a heavier sprite. +
++ Density is used to calculate mass for a sprite. +
+Related: + GetSpriteDensity +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritefixedrotation.html b/doc/doc_files/setspritefixedrotation.html new file mode 100644 index 0000000..59b1b60 --- /dev/null +++ b/doc/doc_files/setspritefixedrotation.html @@ -0,0 +1,20 @@ + + +
+ + ++ Prevents sprite from being rotated by any forces applied to it +
+Related: + spriteIsFixedRotation +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritefriction.html b/doc/doc_files/setspritefriction.html new file mode 100644 index 0000000..abaeac8 --- /dev/null +++ b/doc/doc_files/setspritefriction.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets a sprite's friction +
+Related: + GetSpriteFriction +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritegravityscale.html b/doc/doc_files/setspritegravityscale.html new file mode 100644 index 0000000..19cff02 --- /dev/null +++ b/doc/doc_files/setspritegravityscale.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the affect of gravity on a sprite +
+Related: + GetSpriteGravityScale +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritelineardamping.html b/doc/doc_files/setspritelineardamping.html new file mode 100644 index 0000000..929c854 --- /dev/null +++ b/doc/doc_files/setspritelineardamping.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the linear damping of a sprite +
+Related: + GetSpriteLinearDamping +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritelinearvelocity.html b/doc/doc_files/setspritelinearvelocity.html new file mode 100644 index 0000000..3009a35 --- /dev/null +++ b/doc/doc_files/setspritelinearvelocity.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets a sprite's linear velocity +
+Related: + GetSpriteLinearVelocity +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritepolygon.html b/doc/doc_files/setspritepolygon.html new file mode 100644 index 0000000..04fef29 --- /dev/null +++ b/doc/doc_files/setspritepolygon.html @@ -0,0 +1,17 @@ + + +
+ + ++ Sets the points in a polygon sprite shape +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspriteradius.html b/doc/doc_files/setspriteradius.html new file mode 100644 index 0000000..0aa3d79 --- /dev/null +++ b/doc/doc_files/setspriteradius.html @@ -0,0 +1,23 @@ + + +
+ + ++ Sets the radius of a sprites collision shape +
++ NOTE: Does nothing if collision shape is not SPRITE_SHAPE_CIRCLE +
+Related: + GetSpriteRadius +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspriterestitution.html b/doc/doc_files/setspriterestitution.html new file mode 100644 index 0000000..f279e4e --- /dev/null +++ b/doc/doc_files/setspriterestitution.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the restitution coefficient for a sprite +
+Related: + GetSpriteRestitution +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspriterestitutionthreshold.html b/doc/doc_files/setspriterestitutionthreshold.html new file mode 100644 index 0000000..07c8353 --- /dev/null +++ b/doc/doc_files/setspriterestitutionthreshold.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the restitution threshold for a sprite. +
+Related: + GetSpriteRestitutionThreshold +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setspritesleepallowed.html b/doc/doc_files/setspritesleepallowed.html new file mode 100644 index 0000000..77305f3 --- /dev/null +++ b/doc/doc_files/setspritesleepallowed.html @@ -0,0 +1,22 @@ + + +
+ + ++ Sets whether the sprite is allowed to go to sleep when it's at rest +
+Related: + SetSpriteAwake + SpriteIsAwake + SpriteIsSleepAllowed +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setworld2dautoclearforces.html b/doc/doc_files/setworld2dautoclearforces.html new file mode 100644 index 0000000..8680f37 --- /dev/null +++ b/doc/doc_files/setworld2dautoclearforces.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the auto clear forces flag for the active canvas +
+Related: + GetWorld2DAutoClearForces +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setworld2dpositioniterations.html b/doc/doc_files/setworld2dpositioniterations.html new file mode 100644 index 0000000..6da7829 --- /dev/null +++ b/doc/doc_files/setworld2dpositioniterations.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the number of position iterations for the position constraint solver +
+Related: + GetWorld2DPositionIterations +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setworld2dtimestep.html b/doc/doc_files/setworld2dtimestep.html new file mode 100644 index 0000000..b26b8af --- /dev/null +++ b/doc/doc_files/setworld2dtimestep.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the timestep for the active canvas +
+Related: + GetWorld2DTimeStep +
++ + + \ No newline at end of file diff --git a/doc/doc_files/setworld2dvelocityiterations.html b/doc/doc_files/setworld2dvelocityiterations.html new file mode 100644 index 0000000..7ff62a1 --- /dev/null +++ b/doc/doc_files/setworld2dvelocityiterations.html @@ -0,0 +1,20 @@ + + +
+ + ++ Sets the number of velocity iterations for the velocity constraint solver +
+Related: + GetWorld2DVelocityIterations +
++ + + \ No newline at end of file diff --git a/doc/doc_files/spriteexists.html b/doc/doc_files/spriteexists.html new file mode 100644 index 0000000..e346232 --- /dev/null +++ b/doc/doc_files/spriteexists.html @@ -0,0 +1,14 @@ + + +
+ + ++ + + \ No newline at end of file diff --git a/doc/doc_files/spriteisawake.html b/doc/doc_files/spriteisawake.html new file mode 100644 index 0000000..33ed561 --- /dev/null +++ b/doc/doc_files/spriteisawake.html @@ -0,0 +1,22 @@ + + +
+ + ++ Wakes a sleeping sprite +
+Related: + SetSpriteAwake + SpriteIsSleepAllowed + SetSpriteSleepAllowed +
++ + + \ No newline at end of file diff --git a/doc/doc_files/spriteisbullet.html b/doc/doc_files/spriteisbullet.html new file mode 100644 index 0000000..7fd5e31 --- /dev/null +++ b/doc/doc_files/spriteisbullet.html @@ -0,0 +1,23 @@ + + +
+ + ++ Returns whether body has continuous collision detection +
++ Note: Useful for fast moving objects +
+Related: + SetSpriteBullet +
++ + + \ No newline at end of file diff --git a/doc/doc_files/spriteisfixedrotation.html b/doc/doc_files/spriteisfixedrotation.html new file mode 100644 index 0000000..4fb0098 --- /dev/null +++ b/doc/doc_files/spriteisfixedrotation.html @@ -0,0 +1,20 @@ + + +
+ + ++ Returns whether fixed rotation is set on the sprite +
+Related: + SetSpriteFixedRotation +
++ + + \ No newline at end of file diff --git a/doc/doc_files/spritesleepallowed.html b/doc/doc_files/spritesleepallowed.html new file mode 100644 index 0000000..8b11273 --- /dev/null +++ b/doc/doc_files/spritesleepallowed.html @@ -0,0 +1,22 @@ + + +
+ + ++ Whether the body is allowed to go to sleep when it's at rest +
+Related: + SetSpriteSleepAllowed + SpriteIsAwake + SetSpriteAwake +
++ + + \ No newline at end of file diff --git a/doc/doc_files/style.css b/doc/doc_files/style.css new file mode 100644 index 0000000..50cfb82 --- /dev/null +++ b/doc/doc_files/style.css @@ -0,0 +1,65 @@ +table, th, td { border: 1px solid black; } th, td { padding: 10px; } +body { background-color: #064066; color: #FFFFFF; } +a { color: #40bfb8; } +a::before { + content: "---"; + font-family: monospace, monospace; + display: inline-block; + margin-right: 6px; + color: #064066; +} + +.rc_number { color: #0b9898; } +.rc_string { color: #dd4040; } +.rc_keyword { color: #6084a8; font-weight: bold; } +.rc_comment { color: #6e716e; } +#rc_code { font-family: Consolas,"courier new"; background-color: #2d3335; padding: 2px; font-size: 105%; } + + +ul, #myUL { + list-style-type: none; +} + +#myUL { + margin: 0; + padding: 0; +} + +.box { + cursor: pointer; + -webkit-user-select: none; /* Safari 3.1+ */ + -moz-user-select: none; /* Firefox 2+ */ + -ms-user-select: none; /* IE 10+ */ + user-select: none; +} + +.box::before { + content: "[+]"; + font-family: monospace, monospace; + font-weight: bold; + color: #40bfb8; + display: inline-block; + margin-right: 6px; +} + +.box { + font-weight: bold; + color: #40bfb8; + text-decoration: underline; +} + +.check-box::before { + content: "[-]"; + font-family: monospace, monospace; + font-weight: bold; + //color: dodgerblue; + color: #40bfb8; +} + +.nested { + display: none; +} + +.active { + display: block; +} diff --git a/doc/doc_files/triangle.html b/doc/doc_files/triangle.html new file mode 100644 index 0000000..ab9dc03 --- /dev/null +++ b/doc/doc_files/triangle.html @@ -0,0 +1,17 @@ + + +
+ + ++ Draws a filled Triangle +
++ + + \ No newline at end of file diff --git a/doc/doc_files/triangle3d.html b/doc/doc_files/triangle3d.html new file mode 100644 index 0000000..95dd959 --- /dev/null +++ b/doc/doc_files/triangle3d.html @@ -0,0 +1,17 @@ + + +
+ + ++ Draws a triangle in 3D space +
+
+
+
+
\ No newline at end of file
diff --git a/doc/files/createconemesh.txt b/doc/files/createconemesh.txt
new file mode 100644
index 0000000..eb2631a
--- /dev/null
+++ b/doc/files/createconemesh.txt
@@ -0,0 +1,4 @@
+#title CreateConeMesh [RCBasic Doc]
+#header Function CreateConeMesh( radius, cone_length, tesselation, top_color, bottom_color )
+
+
diff --git a/doc/files/createcylindermesh.txt b/doc/files/createcylindermesh.txt
new file mode 100644
index 0000000..8e36ee7
--- /dev/null
+++ b/doc/files/createcylindermesh.txt
@@ -0,0 +1,4 @@
+#title CreateCylinderMesh [RCBasic Doc]
+#header Function CreateCylinderMesh( radius, cylinder_length, tesselation, color, close_top )
+
+
diff --git a/doc/files/createvolumelightmesh.txt b/doc/files/createvolumelightmesh.txt
new file mode 100644
index 0000000..82e6f13
--- /dev/null
+++ b/doc/files/createvolumelightmesh.txt
@@ -0,0 +1,4 @@
+#title CreateVolumeLightMesh [RCBasic Doc]
+#header Function CreateVolumeLightMesh( u, v, foot_color, tail_color, lp_distance, dim_x, dim_y, dim_z )
+
+
diff --git a/doc/files/deletean8.txt b/doc/files/deletean8.txt
new file mode 100644
index 0000000..ad60000
--- /dev/null
+++ b/doc/files/deletean8.txt
@@ -0,0 +1,4 @@
+#title DeleteAN8 [RCBasic Doc]
+#header Sub DeleteAN8( an8_project )
+
+
diff --git a/doc/files/getactorcollisionshape.txt b/doc/files/getactorcollisionshape.txt
index 7df0631..f9e329c 100644
--- a/doc/files/getactorcollisionshape.txt
+++ b/doc/files/getactorcollisionshape.txt
@@ -5,14 +5,14 @@ Returns the actor's collision shape
Possible values:
#list ul
-#li SHAPE_TYPE_NONE
-#li SHAPE_TYPE_BOX
-#li SHAPE_TYPE_SPHERE
-#li SHAPE_TYPE_CYLINDER
-#li SHAPE_TYPE_CAPSULE
-#li SHAPE_TYPE_CONE
-#li SHAPE_TYPE_CONVEXHULL
-#li SHAPE_TYPE_TRIMESH
+#li ACTOR_SHAPE_NONE
+#li ACTOR_SHAPE_BOX
+#li ACTOR_SHAPE_SPHERE
+#li ACTOR_SHAPE_CYLINDER
+#li ACTOR_SHAPE_CAPSULE
+#li ACTOR_SHAPE_CONE
+#li ACTOR_SHAPE_CONVEXHULL
+#li ACTOR_SHAPE_TRIMESH
#/list
#ref SetActorCollisionShape
diff --git a/doc/files/getspriteboxsize.txt b/doc/files/getspriteboxsize.txt
new file mode 100644
index 0000000..0e73d47
--- /dev/null
+++ b/doc/files/getspriteboxsize.txt
@@ -0,0 +1,8 @@
+#title GetSpriteBoxSize [RCBasic Doc]
+#header Sub GetSpriteBoxSize(spr_id, ByRef w, ByRef h)
+
+Returns the size of the collision box on a sprite.
+
+NOTE: Returns (-1, -1) if the collision shape is not a box
+
+#ref SetSpriteBox
diff --git a/doc/files/getspritecollisionshape.txt b/doc/files/getspritecollisionshape.txt
new file mode 100644
index 0000000..b3c3f28
--- /dev/null
+++ b/doc/files/getspritecollisionshape.txt
@@ -0,0 +1,13 @@
+#title GetSpriteCollisionShape [RCBasic Doc]
+#header Function GetSpriteCollisionShape(spr_id)
+
+Returns the collision shape of a sprite
+
+Shape Types:
+#list ul
+#li SPRITE_SHAPE_NONE
+#li SPRITE_SHAPE_BOX
+#li SPRITE_SHAPE_POLYGON
+#li SPRITE_SHAPE_CIRCLE
+#li SPRITE_SHAPE_CHAIN
+#/list
diff --git a/doc/files/getspriteradius.txt b/doc/files/getspriteradius.txt
new file mode 100644
index 0000000..612b3b5
--- /dev/null
+++ b/doc/files/getspriteradius.txt
@@ -0,0 +1,8 @@
+#title GetSpriteRadius [RCBasic Doc]
+#header Function GetSpriteRadius(spr_id)
+
+Returns the radius of a sprites collision shape
+
+NOTE: Returns 0 if collision shape is not SPRITE_SHAPE_CIRCLE
+
+#ref SetSpriteRadius
diff --git a/doc/files/setactorcollisionshape.txt b/doc/files/setactorcollisionshape.txt
index 2863723..e2863e6 100644
--- a/doc/files/setactorcollisionshape.txt
+++ b/doc/files/setactorcollisionshape.txt
@@ -5,14 +5,14 @@ Sets the actor's collision shape
Shape Types:
#list ul
-#li SHAPE_TYPE_NONE
-#li SHAPE_TYPE_BOX
-#li SHAPE_TYPE_SPHERE
-#li SHAPE_TYPE_CYLINDER
-#li SHAPE_TYPE_CAPSULE
-#li SHAPE_TYPE_CONE
-#li SHAPE_TYPE_CONVEXHULL
-#li SHAPE_TYPE_TRIMESH
+#li ACTOR_SHAPE_NONE
+#li ACTOR_SHAPE_BOX
+#li ACTOR_SHAPE_SPHERE
+#li ACTOR_SHAPE_CYLINDER
+#li ACTOR_SHAPE_CAPSULE
+#li ACTOR_SHAPE_CONE
+#li ACTOR_SHAPE_CONVEXHULL
+#li ACTOR_SHAPE_TRIMESH
#/list
#ref GetActorCollisionShape
diff --git a/doc/files/setspritebox.txt b/doc/files/setspritebox.txt
new file mode 100644
index 0000000..984fbfd
--- /dev/null
+++ b/doc/files/setspritebox.txt
@@ -0,0 +1,6 @@
+#title SetSpriteBox [RCBasic Doc]
+#header Sub SetSpriteBox(spr_id, w, h)
+
+Sets the width and Height of a sprite collision box
+
+NOTE: Sprite collision shape must be SPRITE_SHAPE_BOX
diff --git a/doc/files/setspritechain.txt b/doc/files/setspritechain.txt
new file mode 100644
index 0000000..e8dd437
--- /dev/null
+++ b/doc/files/setspritechain.txt
@@ -0,0 +1,7 @@
+#title SetSpriteChain [RCBasic Doc]
+#header Sub SetSpriteChain(spr_id, ByRef vx, ByRef vy, v_count, prev_x, prev_y, next_x, next_y)
+
+Sets the points in a collision chain
+
+NOTE: Sprite collision shape must be SPRITE_SHAPE_CHAIN
+
diff --git a/doc/files/setspritechainloop.txt b/doc/files/setspritechainloop.txt
new file mode 100644
index 0000000..5ce62a0
--- /dev/null
+++ b/doc/files/setspritechainloop.txt
@@ -0,0 +1,10 @@
+#title SetSpriteChainLoop [RCBasic Doc]
+#header Sub SetSpriteChainLoop(spr_id, ByRef vx, ByRef vy, v_count)
+
+Sets the points in a collision chain loop
+
+NOTE: Since it is a loop, the shape will be a closed
+
+NOTE: Sprite collision shape must be SPRITE_SHAPE_CHAIN
+
+
diff --git a/doc/files/setspritecollisionshape.txt b/doc/files/setspritecollisionshape.txt
new file mode 100644
index 0000000..a64fd99
--- /dev/null
+++ b/doc/files/setspritecollisionshape.txt
@@ -0,0 +1,15 @@
+#title SetSpriteCollisionShape [RCBasic Doc]
+#header Sub SetSpriteCollisionShape(spr_id, shape)
+
+Sets the collision shape of a sprite
+
+Shape Types:
+#list ul
+#li SPRITE_SHAPE_NONE
+#li SPRITE_SHAPE_BOX
+#li SPRITE_SHAPE_POLYGON
+#li SPRITE_SHAPE_CIRCLE
+#li SPRITE_SHAPE_CHAIN
+#/list
+
+#ref SetSpriteBox SetSpriteRadius SetSpriteChain SetSpriteChainLoop SetSpritePolygon
diff --git a/doc/files/setspritepolygon.txt b/doc/files/setspritepolygon.txt
new file mode 100644
index 0000000..c836ede
--- /dev/null
+++ b/doc/files/setspritepolygon.txt
@@ -0,0 +1,4 @@
+#title SetSpritePolygon [RCBasic Doc]
+#header Sub SetSpritePolygon(spr_id, ByRef vx, ByRef vy, v_count)
+
+Sets the points in a polygon sprite shape
diff --git a/doc/files/setspriteradius.txt b/doc/files/setspriteradius.txt
new file mode 100644
index 0000000..fc9df2c
--- /dev/null
+++ b/doc/files/setspriteradius.txt
@@ -0,0 +1,8 @@
+#title SetSpriteRadius [RCBasic Doc]
+#header Sub SetSpriteRadius(spr_id, radius)
+
+Sets the radius of a sprites collision shape
+
+NOTE: Does nothing if collision shape is not SPRITE_SHAPE_CIRCLE
+
+#ref GetSpriteRadius
diff --git a/doc/update_doc.sh b/doc/update_doc.sh
new file mode 100755
index 0000000..4bd3966
--- /dev/null
+++ b/doc/update_doc.sh
@@ -0,0 +1 @@
+rcbasic /home/n00b/Projects/rc_docs/RCDocs/rc_doc_run files doc_files
diff --git a/rcbasic_build/intern_inc/switch_cases.h b/rcbasic_build/intern_inc/switch_cases.h
index af736da..f98dd94 100644
--- a/rcbasic_build/intern_inc/switch_cases.h
+++ b/rcbasic_build/intern_inc/switch_cases.h
@@ -554,6 +554,15 @@ rc_getWorld2DAutoClearForces( )
rc_castRay2D( CASTRAY2D_FROM_X, CASTRAY2D_FROM_Y, CASTRAY2D_TO_X, CASTRAY2D_TO_Y )
rc_castRay2D_All( CASTRAY2D_ALL_FROM_X, CASTRAY2D_ALL_FROM_Y, CASTRAY2D_ALL_TO_X, CASTRAY2D_ALL_TO_Y )
rc_getRayHit2D( GETRAYHIT2D_INDEX, &GETRAYHIT2D_SPR_ID, &GETRAYHIT2D_X, &GETRAYHIT2D_Y, &GETRAYHIT2D_NORMAL_X, &GETRAYHIT2D_NORMAL_Y )
+rc_setSpriteCollisionShape( SETSPRITECOLLISIONSHAPE_SPR_ID, SETSPRITECOLLISIONSHAPE_SHAPE )
+rc_getSpriteCollisionShape( GETSPRITECOLLISIONSHAPE_SPR_ID )
+rc_setSpriteRadius( SETSPRITERADIUS_SPR_ID, SETSPRITERADIUS_RADIUS )
+rc_getSpriteRadius( GETSPRITERADIUS_SPR_ID )
+rc_setSpriteBox( SETSPRITEBOX_SPR_ID, SETSPRITEBOX_W, SETSPRITEBOX_H )
+rc_getSpriteBoxSize( GETSPRITEBOXSIZE_SPR_ID, &GETSPRITEBOXSIZE_W, &GETSPRITEBOXSIZE_H )
+rc_setSpriteChain( SETSPRITECHAIN_SPR_ID, &SETSPRITECHAIN_VX, &SETSPRITECHAIN_VY, SETSPRITECHAIN_V_COUNT, SETSPRITECHAIN_PREV_X, SETSPRITECHAIN_PREV_Y, SETSPRITECHAIN_NEXT_X, SETSPRITECHAIN_NEXT_Y )
+rc_setSpriteChainLoop( SETSPRITECHAINLOOP_SPR_ID, &SETSPRITECHAINLOOP_VX, &SETSPRITECHAINLOOP_VY, SETSPRITECHAINLOOP_V_COUNT )
+rc_setSpritePolygon( SETSPRITEPOLYGON_SPR_ID, &SETSPRITEPOLYGON_VX, &SETSPRITEPOLYGON_VY, SETSPRITEPOLYGON_V_COUNT )
rc_createDistanceJoint( CREATEDISTANCEJOINT_SPRITEA, CREATEDISTANCEJOINT_SPRITEB, CREATEDISTANCEJOINT_AX, CREATEDISTANCEJOINT_AY, CREATEDISTANCEJOINT_BX, CREATEDISTANCEJOINT_BY, CREATEDISTANCEJOINT_COLLIDE_CONNECT )
rc_createFrictionJoint( CREATEFRICTIONJOINT_SPRITEA, CREATEFRICTIONJOINT_SPRITEB, CREATEFRICTIONJOINT_X, CREATEFRICTIONJOINT_Y, CREATEFRICTIONJOINT_COLLIDE_CONNECT )
rc_createGearJoint( CREATEGEARJOINT_JOINTA, CREATEGEARJOINT_JOINTB, CREATEGEARJOINT_G_RATIO, CREATEGEARJOINT_COLLIDE_CONNECT )
diff --git a/rcbasic_build/intern_lib/sprite_physics.bas b/rcbasic_build/intern_lib/sprite_physics.bas
index 70a2445..b97ee2f 100644
--- a/rcbasic_build/intern_lib/sprite_physics.bas
+++ b/rcbasic_build/intern_lib/sprite_physics.bas
@@ -52,3 +52,12 @@ function GetWorld2DAutoClearForces()
function CastRay2D( from_x, from_y, to_x, to_y )
function CastRay2D_All( from_x, from_y, to_x, to_y )
sub GetRayHit2D( index, ByRef spr_id, ByRef x, ByRef y, ByRef normal_x, ByRef normal_y )
+Sub SetSpriteCollisionShape(spr_id, shape)
+Function GetSpriteCollisionShape(spr_id)
+Sub SetSpriteRadius(spr_id, radius)
+Function GetSpriteRadius(spr_id)
+Sub SetSpriteBox(spr_id, w, h)
+Sub GetSpriteBoxSize(spr_id, ByRef w, ByRef h)
+Sub SetSpriteChain(spr_id, ByRef vx, ByRef vy, v_count, prev_x, prev_y, next_x, next_y)
+Sub SetSpriteChainLoop(spr_id, ByRef vx, ByRef vy, v_count)
+Sub SetSpritePolygon(spr_id, ByRef vx, ByRef vy, v_count)
diff --git a/rcbasic_build/main.cpp b/rcbasic_build/main.cpp
index b0294b9..c9fc9e7 100755
--- a/rcbasic_build/main.cpp
+++ b/rcbasic_build/main.cpp
@@ -919,9 +919,9 @@ int main(int argc, char * argv[])
bool clean_after_build = true;
//DEBUG START
- //chdir("/home/n00b/Programs/RCBasic_v400_Linux64/examples/Spinning Axis");
+ //chdir("/home/n00b/test/SpriteShapeTest");
//rc_filename = "/home/n00b/test/stp/serenity_main.bas";
- //rc_filename = "/home/n00b/Downloads/Tile Scrolling/main.bas";
+ //rc_filename = "/home/n00b/test/SpriteShapeTest/main.bas";
//rc_filename = "/home/n00b/Programs/RCBasic_v400_Linux64/examples/Constraint/main.bas";
//rc_filename = "/home/n00b/Programs/RCBasic_v400_Linux64/examples/Simple 3D Platformer/main.bas";
//DEBUG END
diff --git a/rcbasic_build/rc_builtin.h b/rcbasic_build/rc_builtin.h
index a82de16..edb8f0c 100755
--- a/rcbasic_build/rc_builtin.h
+++ b/rcbasic_build/rc_builtin.h
@@ -1625,6 +1625,43 @@ void init_embedded_functions()
add_embedded_arg("y", ID_TYPE_BYREF_NUM);
add_embedded_arg("normal_x", ID_TYPE_BYREF_NUM);
add_embedded_arg("normal_y", ID_TYPE_BYREF_NUM);
+ embed_function("SetSpriteCollisionShape", ID_TYPE_SUB);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ add_embedded_arg("shape", ID_TYPE_NUM);
+ embed_function("GetSpriteCollisionShape", ID_TYPE_FN_NUM);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ embed_function("SetSpriteRadius", ID_TYPE_SUB);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ add_embedded_arg("radius", ID_TYPE_NUM);
+ embed_function("GetSpriteRadius", ID_TYPE_FN_NUM);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ embed_function("SetSpriteBox", ID_TYPE_SUB);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ add_embedded_arg("w", ID_TYPE_NUM);
+ add_embedded_arg("h", ID_TYPE_NUM);
+ embed_function("GetSpriteBoxSize", ID_TYPE_SUB);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ add_embedded_arg("w", ID_TYPE_BYREF_NUM);
+ add_embedded_arg("h", ID_TYPE_BYREF_NUM);
+ embed_function("SetSpriteChain", ID_TYPE_SUB);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ add_embedded_arg("vx", ID_TYPE_BYREF_NUM);
+ add_embedded_arg("vy", ID_TYPE_BYREF_NUM);
+ add_embedded_arg("v_count", ID_TYPE_NUM);
+ add_embedded_arg("prev_x", ID_TYPE_NUM);
+ add_embedded_arg("prev_y", ID_TYPE_NUM);
+ add_embedded_arg("next_x", ID_TYPE_NUM);
+ add_embedded_arg("next_y", ID_TYPE_NUM);
+ embed_function("SetSpriteChainLoop", ID_TYPE_SUB);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ add_embedded_arg("vx", ID_TYPE_BYREF_NUM);
+ add_embedded_arg("vy", ID_TYPE_BYREF_NUM);
+ add_embedded_arg("v_count", ID_TYPE_NUM);
+ embed_function("SetSpritePolygon", ID_TYPE_SUB);
+ add_embedded_arg("spr_id", ID_TYPE_NUM);
+ add_embedded_arg("vx", ID_TYPE_BYREF_NUM);
+ add_embedded_arg("vy", ID_TYPE_BYREF_NUM);
+ add_embedded_arg("v_count", ID_TYPE_NUM);
embed_function("createDistanceJoint", ID_TYPE_FN_NUM);
add_embedded_arg("spriteA", ID_TYPE_NUM);
add_embedded_arg("spriteB", ID_TYPE_NUM);
diff --git a/rcbasic_build/rcbasic4_changes.ods b/rcbasic_build/rcbasic4_changes.ods
index 941eed16e8bf1e469ddaeaf5baaefc67dcf6a4a0..52b03facec34d031835f52e2b6a7e1e8e164b919 100644
GIT binary patch
delta 3779072
zcmZsCWmH^C(=LSI?hxEv0t9#0po2?r*Wfm|```rk!QCOa2X_zd?)Guc``)#_d)J*m
z^>kG~yKAay_H^yl+ix%wE@vzh4p~VK>N6Gu1RMl}6pnK|vNF_%s4-+k`A60zqL4!V
z3z|^T{so{BG!meJ200(b?~Qv^2lq90jnB6zSyNtLux8OE-VPsXX`EByzGYU+X#Ws=
z&9ZYabGEP*3t*jZkCJsO xF!CR9bQJ;EjVCrL0LyGcEoAVKkuw@HVEj2a|`0@SwlM;
z-%?Wso(kM2+zlYaiH>L)s
zu29>wxz%uDc3mPnpAiQayj`;12|J
zG99LyESq#a8wqhxK)|i2b;k_KNaUZyYilK58Lu|R8(I@{Z$8Ks5<911*;^a7*)ZlA
z(W&;>%VXdA4xidOR8WljR>|eDC1^@Q|#F
zydIC9M@G05xVgwXbK7M*al;1}dD+zmGFrDM