Added docs and project management tool update
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ case FN_Input$: //String Function
|
||||
rc_push_str(rc_input( INPUT$_PROMPT$ ));
|
||||
break;
|
||||
case FN_tst: //Sub Procedure
|
||||
rc_tst( &TST_X );
|
||||
rc_tst( );
|
||||
break;
|
||||
case FN_ArrayDim: //Number Function
|
||||
//DUMMY CASE
|
||||
@@ -556,8 +556,8 @@ case FN_OpenCanvas: //Number Function
|
||||
case FN_CloseCanvas: //Sub Procedure
|
||||
rc_canvasClose( CLOSECANVAS_C_NUM );
|
||||
break;
|
||||
case FN_SetCanvas3D: //Sub Procedure
|
||||
rc_setCanvas3D( SETCANVAS3D_C_NUM, SETCANVAS3D_FLAG );
|
||||
case FN_OpenCanvas3D: //Number Function
|
||||
rc_push_num(rc_canvasOpen3D( OPENCANVAS3D_W, OPENCANVAS3D_H, OPENCANVAS3D_VIEWPORT_X, OPENCANVAS3D_VIEWPORT_Y, OPENCANVAS3D_VIEWPORT_W, OPENCANVAS3D_VIEWPORT_H, OPENCANVAS3D_MODE ));
|
||||
break;
|
||||
case FN_SetCanvasVisible: //Sub Procedure
|
||||
rc_setCanvasVisible( SETCANVASVISIBLE_C_NUM, SETCANVASVISIBLE_FLAG );
|
||||
@@ -598,8 +598,8 @@ case FN_SetCanvasColorMod: //Sub Procedure
|
||||
case FN_GetCanvasColorMod: //Number Function
|
||||
rc_push_num(rc_getCanvasColorMod( GETCANVASCOLORMOD_C_NUM ));
|
||||
break;
|
||||
case FN_CloneCanvas: //Sub Procedure
|
||||
rc_cloneCanvas( CLONECANVAS_SRC, CLONECANVAS_DST );
|
||||
case FN_CloneCanvas: //Number Function
|
||||
rc_push_num(rc_cloneCanvas( CLONECANVAS_C_NUM, CLONECANVAS_MODE ));
|
||||
break;
|
||||
case FN_SetCanvasZ: //Sub Procedure
|
||||
rc_setCanvasZ( SETCANVASZ_C_NUM, SETCANVASZ_Z );
|
||||
@@ -613,6 +613,12 @@ case FN_CanvasClip: //Number Function
|
||||
case FN_ActiveCanvas: //Number Function
|
||||
rc_push_num(rc_activeCanvas( ));
|
||||
break;
|
||||
case FN_SetCanvasPhysics2D: //Sub Procedure
|
||||
rc_setCanvasPhysics2D( SETCANVASPHYSICS2D_C_NUM, SETCANVASPHYSICS2D_STATE );
|
||||
break;
|
||||
case FN_OpenSpriteCanvas: //Number Function
|
||||
rc_push_num(rc_canvasOpenSpriteLayer( OPENSPRITECANVAS_W, OPENSPRITECANVAS_H, OPENSPRITECANVAS_VIEWPORT_X, OPENSPRITECANVAS_VIEWPORT_Y, OPENSPRITECANVAS_VIEWPORT_W, OPENSPRITECANVAS_VIEWPORT_H ));
|
||||
break;
|
||||
case FN_Circle: //Sub Procedure
|
||||
rc_drawCircle( CIRCLE_X, CIRCLE_Y, CIRCLE_RADIUS );
|
||||
break;
|
||||
@@ -667,8 +673,8 @@ case FN_createImage: //Number Function
|
||||
case FN_createImageEx: //Number Function
|
||||
rc_push_num(rc_createImageEx( CREATEIMAGEEX_W, CREATEIMAGEEX_H, &CREATEIMAGEEX_BUFFER, CREATEIMAGEEX_COLOR ));
|
||||
break;
|
||||
case FN_getImageBuffer: //Sub Procedure
|
||||
rc_getImageBuffer( GETIMAGEBUFFER_IMG_ID, &GETIMAGEBUFFER_BUFFER );
|
||||
case FN_BufferFromImage: //Sub Procedure
|
||||
rc_getImageBuffer( BUFFERFROMIMAGE_SLOT, &BUFFERFROMIMAGE_BUFFER );
|
||||
break;
|
||||
case FN_ImageExists: //Number Function
|
||||
rc_push_num(rc_imageExists( IMAGEEXISTS_SLOT ));
|
||||
@@ -1415,6 +1421,9 @@ case FN_CreateBillboardActor: //Number Function
|
||||
case FN_CreateTerrainActor: //Number Function
|
||||
rc_push_num(rc_createTerrainActor( CREATETERRAINACTOR_HMAP_FILE$ ));
|
||||
break;
|
||||
case FN_CreateParticleActor: //Number Function
|
||||
rc_push_num(rc_createParticleActor( CREATEPARTICLEACTOR_PARTICLE_TYPE ));
|
||||
break;
|
||||
case FN_DeleteActor: //Sub Procedure
|
||||
rc_deleteActor( DELETEACTOR_ACTOR );
|
||||
break;
|
||||
@@ -1424,8 +1433,8 @@ case FN_GetActorTransform: //Sub Procedure
|
||||
case FN_SetActorPosition: //Sub Procedure
|
||||
rc_setActorPosition( SETACTORPOSITION_ACTOR, SETACTORPOSITION_X, SETACTORPOSITION_Y, SETACTORPOSITION_Z );
|
||||
break;
|
||||
case FN_TranslateActor: //Sub Procedure
|
||||
rc_translateActor( TRANSLATEACTOR_ACTOR, TRANSLATEACTOR_X, TRANSLATEACTOR_Y, TRANSLATEACTOR_Z );
|
||||
case FN_TranslateActorLocal: //Sub Procedure
|
||||
rc_translateActorLocal( TRANSLATEACTORLOCAL_ACTOR, TRANSLATEACTORLOCAL_X, TRANSLATEACTORLOCAL_Y, TRANSLATEACTORLOCAL_Z );
|
||||
break;
|
||||
case FN_TranslateActorWorld: //Sub Procedure
|
||||
rc_translateActorWorld( TRANSLATEACTORWORLD_ACTOR, TRANSLATEACTORWORLD_X, TRANSLATEACTORWORLD_Y, TRANSLATEACTORWORLD_Z );
|
||||
@@ -1469,6 +1478,9 @@ case FN_AddActorShadow: //Sub Procedure
|
||||
case FN_RemoveActorShadow: //Sub Procedure
|
||||
rc_removeActorShadow( REMOVEACTORSHADOW_ACTOR );
|
||||
break;
|
||||
case FN_ActorExists: //Number Function
|
||||
rc_push_num(rc_actorExists( ACTOREXISTS_ACTOR ));
|
||||
break;
|
||||
case FN_SetGravity3D: //Sub Procedure
|
||||
rc_setGravity3D( SETGRAVITY3D_X, SETGRAVITY3D_Y, SETGRAVITY3D_Z );
|
||||
break;
|
||||
@@ -1592,11 +1604,11 @@ case FN_getActorCOMPosition: //Sub Procedure
|
||||
case FN_getActorRotationQ: //Sub Procedure
|
||||
rc_getActorRotationQ( GETACTORROTATIONQ_ACTOR, &GETACTORROTATIONQ_X, &GETACTORROTATIONQ_Y, &GETACTORROTATIONQ_Z, &GETACTORROTATIONQ_W );
|
||||
break;
|
||||
case FN_getActorLinearVelocity: //Sub Procedure
|
||||
rc_getActorLinearVelocity( GETACTORLINEARVELOCITY_ACTOR, &GETACTORLINEARVELOCITY_X, &GETACTORLINEARVELOCITY_Y, &GETACTORLINEARVELOCITY_Z );
|
||||
case FN_getActorLinearVelocityWorld: //Sub Procedure
|
||||
rc_getActorLinearVelocityWorld( GETACTORLINEARVELOCITYWORLD_ACTOR, &GETACTORLINEARVELOCITYWORLD_X, &GETACTORLINEARVELOCITYWORLD_Y, &GETACTORLINEARVELOCITYWORLD_Z );
|
||||
break;
|
||||
case FN_getActorAngularVelocity: //Sub Procedure
|
||||
rc_getActorAngularVelocity( GETACTORANGULARVELOCITY_ACTOR, &GETACTORANGULARVELOCITY_X, &GETACTORANGULARVELOCITY_Y, &GETACTORANGULARVELOCITY_Z );
|
||||
case FN_getActorAngularVelocityWorld: //Sub Procedure
|
||||
rc_getActorAngularVelocityWorld( GETACTORANGULARVELOCITYWORLD_ACTOR, &GETACTORANGULARVELOCITYWORLD_X, &GETACTORANGULARVELOCITYWORLD_Y, &GETACTORANGULARVELOCITYWORLD_Z );
|
||||
break;
|
||||
case FN_setActorLinearVelocityLocal: //Sub Procedure
|
||||
rc_setActorLinearVelocityLocal( SETACTORLINEARVELOCITYLOCAL_ACTOR, SETACTORLINEARVELOCITYLOCAL_X, SETACTORLINEARVELOCITYLOCAL_Y, SETACTORLINEARVELOCITYLOCAL_Z );
|
||||
@@ -1643,23 +1655,26 @@ case FN_computeActorGyroImpulseWorld: //Sub Procedure
|
||||
case FN_getActorLocalInertia: //Sub Procedure
|
||||
rc_getActorLocalInertia( GETACTORLOCALINERTIA_ACTOR, &GETACTORLOCALINERTIA_X, &GETACTORLOCALINERTIA_Y, &GETACTORLOCALINERTIA_Z );
|
||||
break;
|
||||
case FN_SetActorSleepState: //Sub Procedure
|
||||
rc_setActorSleepState( SETACTORSLEEPSTATE_ACTOR, SETACTORSLEEPSTATE_STATE );
|
||||
break;
|
||||
case FN_createPointConstraint: //Number Function
|
||||
rc_push_num(rc_createPointConstraint( CREATEPOINTCONSTRAINT_ACTORA, CREATEPOINTCONSTRAINT_PXA, CREATEPOINTCONSTRAINT_PYA, CREATEPOINTCONSTRAINT_PZA ));
|
||||
break;
|
||||
case FN_createPointConstraintEx: //Number Function
|
||||
rc_push_num(rc_createPointConstraintEx( CREATEPOINTCONSTRAINTEX_ACTORA, CREATEPOINTCONSTRAINTEX_ACTORB, CREATEPOINTCONSTRAINTEX_PXA, CREATEPOINTCONSTRAINTEX_PYA, CREATEPOINTCONSTRAINTEX_PZA, CREATEPOINTCONSTRAINTEX_PXB, CREATEPOINTCONSTRAINTEX_PYB, CREATEPOINTCONSTRAINTEX_PZB ));
|
||||
break;
|
||||
case FN_setConstraintPivotA: //Sub Procedure
|
||||
rc_setConstraintPivotA( SETCONSTRAINTPIVOTA_CONSTRAINT_ID, SETCONSTRAINTPIVOTA_X, SETCONSTRAINTPIVOTA_Y, SETCONSTRAINTPIVOTA_Z );
|
||||
case FN_setPointPivotA: //Sub Procedure
|
||||
rc_setPointPivotA( SETPOINTPIVOTA_CONSTRAINT_ID, SETPOINTPIVOTA_X, SETPOINTPIVOTA_Y, SETPOINTPIVOTA_Z );
|
||||
break;
|
||||
case FN_setConstraintPivotB: //Sub Procedure
|
||||
rc_setConstraintPivotB( SETCONSTRAINTPIVOTB_CONSTRAINT_ID, SETCONSTRAINTPIVOTB_X, SETCONSTRAINTPIVOTB_Y, SETCONSTRAINTPIVOTB_Z );
|
||||
case FN_setPointPivotB: //Sub Procedure
|
||||
rc_setPointPivotB( SETPOINTPIVOTB_CONSTRAINT_ID, SETPOINTPIVOTB_X, SETPOINTPIVOTB_Y, SETPOINTPIVOTB_Z );
|
||||
break;
|
||||
case FN_createHingeConstraint: //Number Function
|
||||
rc_push_num(rc_createHingeConstraint( CREATEHINGECONSTRAINT_ACTORA, CREATEHINGECONSTRAINT_PXA, CREATEHINGECONSTRAINT_PYA, CREATEHINGECONSTRAINT_PZA, CREATEHINGECONSTRAINT_AXA, CREATEHINGECONSTRAINT_AYA, CREATEHINGECONSTRAINT_AZA ));
|
||||
rc_push_num(rc_createHingeConstraint( CREATEHINGECONSTRAINT_ACTORA, CREATEHINGECONSTRAINT_FRAMEA, CREATEHINGECONSTRAINT_USEREFERENCEFRAMEA ));
|
||||
break;
|
||||
case FN_createHingeConstraintEx: //Number Function
|
||||
rc_push_num(rc_createHingeConstraintEx( CREATEHINGECONSTRAINTEX_ACTORA, CREATEHINGECONSTRAINTEX_ACTORB, CREATEHINGECONSTRAINTEX_PXA, CREATEHINGECONSTRAINTEX_PYA, CREATEHINGECONSTRAINTEX_PZA, CREATEHINGECONSTRAINTEX_PXB, CREATEHINGECONSTRAINTEX_PYB, CREATEHINGECONSTRAINTEX_PZB, CREATEHINGECONSTRAINTEX_AXA, CREATEHINGECONSTRAINTEX_AYA, CREATEHINGECONSTRAINTEX_AZA, CREATEHINGECONSTRAINTEX_AXB, CREATEHINGECONSTRAINTEX_AYB, CREATEHINGECONSTRAINTEX_AZB ));
|
||||
rc_push_num(rc_createHingeConstraintEx( CREATEHINGECONSTRAINTEX_ACTORA, CREATEHINGECONSTRAINTEX_ACTORB, CREATEHINGECONSTRAINTEX_FRAMEA, CREATEHINGECONSTRAINTEX_FRAMEB, CREATEHINGECONSTRAINTEX_USEREFERENCEFRAMEA ));
|
||||
break;
|
||||
case FN_createSlideConstraint: //Number Function
|
||||
rc_push_num(rc_createSlideConstraint( CREATESLIDECONSTRAINT_ACTORA, CREATESLIDECONSTRAINT_FRAMEINB_MATRIX, CREATESLIDECONSTRAINT_USELINEARREFERENCEFRAMEA ));
|
||||
@@ -1700,8 +1715,8 @@ case FN_getConstraintAFrame: //Number Function
|
||||
case FN_getConstraintBFrame: //Number Function
|
||||
rc_push_num(rc_getConstraintBFrame( GETCONSTRAINTBFRAME_CONSTRAINT_ID, GETCONSTRAINTBFRAME_MA ));
|
||||
break;
|
||||
case FN_setConstraintAxis: //Sub Procedure
|
||||
rc_setConstraintAxis( SETCONSTRAINTAXIS_CONSTRAINT_ID, SETCONSTRAINTAXIS_X, SETCONSTRAINTAXIS_Y, SETCONSTRAINTAXIS_Z );
|
||||
case FN_setHingeAxis: //Sub Procedure
|
||||
rc_setHingeAxis( SETHINGEAXIS_CONSTRAINT_ID, SETHINGEAXIS_X, SETHINGEAXIS_Y, SETHINGEAXIS_Z );
|
||||
break;
|
||||
case FN_setConstraintBreakingImpulseThreshold: //Sub Procedure
|
||||
rc_setConstraintBreakingImpulseThreshold( SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_CONSTRAINT_ID, SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_THRESHOLD );
|
||||
@@ -1715,14 +1730,14 @@ case FN_setHingeLimit: //Sub Procedure
|
||||
case FN_setConeLimit: //Sub Procedure
|
||||
rc_setConeLimit( SETCONELIMIT_CONSTRAINT_ID, SETCONELIMIT_SWINGSPAN1, SETCONELIMIT_SWINGSPAN2, SETCONELIMIT_TWISTSPAN, SETCONELIMIT_SOFTNESS, SETCONELIMIT_BIAS_FACTOR, SETCONELIMIT_RELAXATION_FACTOR );
|
||||
break;
|
||||
case FN_getConstraintLimitBiasFactor: //Number Function
|
||||
rc_push_num(rc_getConstraintLimitBiasFactor( GETCONSTRAINTLIMITBIASFACTOR_CONSTRAINT_ID ));
|
||||
case FN_getHingeLimitBiasFactor: //Number Function
|
||||
rc_push_num(rc_getHingeLimitBiasFactor( GETHINGELIMITBIASFACTOR_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getLimitRelaxationFactor: //Number Function
|
||||
rc_push_num(rc_getLimitRelaxationFactor( GETLIMITRELAXATIONFACTOR_CONSTRAINT_ID ));
|
||||
case FN_getHingeLimitRelaxationFactor: //Number Function
|
||||
rc_push_num(rc_getHingeLimitRelaxationFactor( GETHINGELIMITRELAXATIONFACTOR_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintLimitSign: //Number Function
|
||||
rc_push_num(rc_getConstraintLimitSign( GETCONSTRAINTLIMITSIGN_CONSTRAINT_ID ));
|
||||
case FN_getHingeLimitSign: //Number Function
|
||||
rc_push_num(rc_getHingeLimitSign( GETHINGELIMITSIGN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getHingeSolveLimit: //Number Function
|
||||
rc_push_num(rc_getHingeSolveLimit( GETHINGESOLVELIMIT_CONSTRAINT_ID ));
|
||||
@@ -1736,11 +1751,11 @@ case FN_getConstraintAppliedImpulse: //Number Function
|
||||
case FN_getConstraintFixedActor: //Number Function
|
||||
rc_push_num(rc_getConstraintFixedActor( GETCONSTRAINTFIXEDACTOR_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintPivotA: //Sub Procedure
|
||||
rc_getConstraintPivotA( GETCONSTRAINTPIVOTA_CONSTRAINT_ID, & GETCONSTRAINTPIVOTA_X, & GETCONSTRAINTPIVOTA_Y, & GETCONSTRAINTPIVOTA_Z );
|
||||
case FN_getPointPivotA: //Sub Procedure
|
||||
rc_getPointPivotA( GETPOINTPIVOTA_CONSTRAINT_ID, & GETPOINTPIVOTA_X, & GETPOINTPIVOTA_Y, & GETPOINTPIVOTA_Z );
|
||||
break;
|
||||
case FN_getConstraintPivotB: //Sub Procedure
|
||||
rc_getConstraintPivotB( GETCONSTRAINTPIVOTB_CONSTRAINT_ID, & GETCONSTRAINTPIVOTB_X, & GETCONSTRAINTPIVOTB_Y, & GETCONSTRAINTPIVOTB_Z );
|
||||
case FN_getPointPivotB: //Sub Procedure
|
||||
rc_getPointPivotB( GETPOINTPIVOTB_CONSTRAINT_ID, & GETPOINTPIVOTB_X, & GETPOINTPIVOTB_Y, & GETPOINTPIVOTB_Z );
|
||||
break;
|
||||
case FN_getConstraintActorA: //Number Function
|
||||
rc_push_num(rc_getConstraintActorA( GETCONSTRAINTACTORA_CONSTRAINT_ID ));
|
||||
@@ -1751,17 +1766,17 @@ case FN_getConstraintActorB: //Number Function
|
||||
case FN_setConstraintSolverIterations: //Sub Procedure
|
||||
rc_setConstraintSolverIterations( SETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID, SETCONSTRAINTSOLVERITERATIONS_NUM );
|
||||
break;
|
||||
case FN_getConstraintBiasFactor: //Number Function
|
||||
rc_push_num(rc_getConstraintBiasFactor( GETCONSTRAINTBIASFACTOR_CONSTRAINT_ID ));
|
||||
case FN_getConeBiasFactor: //Number Function
|
||||
rc_push_num(rc_getConeBiasFactor( GETCONEBIASFACTOR_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintDamping: //Number Function
|
||||
rc_push_num(rc_getConstraintDamping( GETCONSTRAINTDAMPING_CONSTRAINT_ID ));
|
||||
case FN_getConeDamping: //Number Function
|
||||
rc_push_num(rc_getConeDamping( GETCONEDAMPING_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintFixThresh: //Number Function
|
||||
rc_push_num(rc_getConstraintFixThresh( GETCONSTRAINTFIXTHRESH_CONSTRAINT_ID ));
|
||||
case FN_getConeFixThresh: //Number Function
|
||||
rc_push_num(rc_getConeFixThresh( GETCONEFIXTHRESH_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintLimit( GETCONSTRAINTLIMIT_CONSTRAINT_ID, GETCONSTRAINTLIMIT_LIMIT_INDEX ));
|
||||
case FN_getConeLimit: //Number Function
|
||||
rc_push_num(rc_getConeLimit( GETCONELIMIT_CONSTRAINT_ID, GETCONELIMIT_LIMIT_INDEX ));
|
||||
break;
|
||||
case FN_getConstraintLimitSoftness: //Number Function
|
||||
rc_push_num(rc_getConstraintLimitSoftness( GETCONSTRAINTLIMITSOFTNESS_CONSTRAINT_ID ));
|
||||
@@ -1769,203 +1784,203 @@ case FN_getConstraintLimitSoftness: //Number Function
|
||||
case FN_getConstraintSolverIterations: //Number Function
|
||||
rc_push_num(rc_getConstraintSolverIterations( GETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintAnglePoint: //Sub Procedure
|
||||
rc_getConstraintAnglePoint( GETCONSTRAINTANGLEPOINT_CONSTRAINT_ID, GETCONSTRAINTANGLEPOINT_ANGLE, GETCONSTRAINTANGLEPOINT_C_LEN, & GETCONSTRAINTANGLEPOINT_X, & GETCONSTRAINTANGLEPOINT_Y, & GETCONSTRAINTANGLEPOINT_Z );
|
||||
case FN_getConeAnglePoint: //Sub Procedure
|
||||
rc_getConeAnglePoint( GETCONEANGLEPOINT_CONSTRAINT_ID, GETCONEANGLEPOINT_ANGLE, GETCONEANGLEPOINT_C_LEN, & GETCONEANGLEPOINT_X, & GETCONEANGLEPOINT_Y, & GETCONEANGLEPOINT_Z );
|
||||
break;
|
||||
case FN_getConstraintAngularOnly: //Number Function
|
||||
rc_push_num(rc_getConstraintAngularOnly( GETCONSTRAINTANGULARONLY_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSolveSwingLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintSolveSwingLimit( GETCONSTRAINTSOLVESWINGLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getConeSolveSwingLimit: //Number Function
|
||||
rc_push_num(rc_getConeSolveSwingLimit( GETCONESOLVESWINGLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSolveTwistLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintSolveTwistLimit( GETCONSTRAINTSOLVETWISTLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getConeSolveTwistLimit: //Number Function
|
||||
rc_push_num(rc_getConeSolveTwistLimit( GETCONESOLVETWISTLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSolveLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintSolveLimit( GETCONSTRAINTSOLVELIMIT_CONSTRAINT_ID ));
|
||||
case FN_getConeSwingSpan1: //Number Function
|
||||
rc_push_num(rc_getConeSwingSpan1( GETCONESWINGSPAN1_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSwingSpan1: //Number Function
|
||||
rc_push_num(rc_getConstraintSwingSpan1( GETCONSTRAINTSWINGSPAN1_CONSTRAINT_ID ));
|
||||
case FN_getConeSwingSpan2: //Number Function
|
||||
rc_push_num(rc_getConeSwingSpan2( GETCONESWINGSPAN2_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSwingSpan2: //Number Function
|
||||
rc_push_num(rc_getConstraintSwingSpan2( GETCONSTRAINTSWINGSPAN2_CONSTRAINT_ID ));
|
||||
case FN_getConeTwistAngle: //Number Function
|
||||
rc_push_num(rc_getConeTwistAngle( GETCONETWISTANGLE_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintTwistAngle: //Number Function
|
||||
rc_push_num(rc_getConstraintTwistAngle( GETCONSTRAINTTWISTANGLE_CONSTRAINT_ID ));
|
||||
case FN_getConeTwistLimitSign: //Number Function
|
||||
rc_push_num(rc_getConeTwistLimitSign( GETCONETWISTLIMITSIGN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintTwistLimitSign: //Number Function
|
||||
rc_push_num(rc_getConstraintTwistLimitSign( GETCONSTRAINTTWISTLIMITSIGN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintTwistSpan: //Number Function
|
||||
rc_push_num(rc_getConstraintTwistSpan( GETCONSTRAINTTWISTSPAN_CONSTRAINT_ID ));
|
||||
case FN_getConeTwistSpan: //Number Function
|
||||
rc_push_num(rc_getConeTwistSpan( GETCONETWISTSPAN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_setConstraintAngularOnly: //Sub Procedure
|
||||
rc_setConstraintAngularOnly( SETCONSTRAINTANGULARONLY_CONSTRAINT_ID, SETCONSTRAINTANGULARONLY_FLAG );
|
||||
break;
|
||||
case FN_setConstraintDamping: //Sub Procedure
|
||||
rc_setConstraintDamping( SETCONSTRAINTDAMPING_CONSTRAINT_ID, SETCONSTRAINTDAMPING_DAMPING );
|
||||
case FN_setConeDamping: //Sub Procedure
|
||||
rc_setConeDamping( SETCONEDAMPING_CONSTRAINT_ID, SETCONEDAMPING_DAMPING );
|
||||
break;
|
||||
case FN_setConstraintFixThresh: //Sub Procedure
|
||||
rc_setConstraintFixThresh( SETCONSTRAINTFIXTHRESH_CONSTRAINT_ID, SETCONSTRAINTFIXTHRESH_FIXTHRESH );
|
||||
case FN_setConeFixThresh: //Sub Procedure
|
||||
rc_setConeFixThresh( SETCONEFIXTHRESH_CONSTRAINT_ID, SETCONEFIXTHRESH_FIXTHRESH );
|
||||
break;
|
||||
case FN_getConstraintAnchorA: //Sub Procedure
|
||||
rc_getConstraintAnchorA( GETCONSTRAINTANCHORA_CONSTRAINT_ID, & GETCONSTRAINTANCHORA_X, & GETCONSTRAINTANCHORA_Y, & GETCONSTRAINTANCHORA_Z );
|
||||
case FN_getSlideAnchorA: //Sub Procedure
|
||||
rc_getSlideAnchorA( GETSLIDEANCHORA_CONSTRAINT_ID, & GETSLIDEANCHORA_X, & GETSLIDEANCHORA_Y, & GETSLIDEANCHORA_Z );
|
||||
break;
|
||||
case FN_getConstraintAnchorB: //Sub Procedure
|
||||
rc_getConstraintAnchorB( GETCONSTRAINTANCHORB_CONSTRAINT_ID, & GETCONSTRAINTANCHORB_X, & GETCONSTRAINTANCHORB_Y, & GETCONSTRAINTANCHORB_Z );
|
||||
case FN_getSlideAnchorB: //Sub Procedure
|
||||
rc_getSlideAnchorB( GETSLIDEANCHORB_CONSTRAINT_ID, & GETSLIDEANCHORB_X, & GETSLIDEANCHORB_Y, & GETSLIDEANCHORB_Z );
|
||||
break;
|
||||
case FN_getConstraintAngDepth: //Number Function
|
||||
rc_push_num(rc_getConstraintAngDepth( GETCONSTRAINTANGDEPTH_CONSTRAINT_ID ));
|
||||
case FN_getSlideAngDepth: //Number Function
|
||||
rc_push_num(rc_getSlideAngDepth( GETSLIDEANGDEPTH_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintAngularPos: //Number Function
|
||||
rc_push_num(rc_getConstraintAngularPos( GETCONSTRAINTANGULARPOS_CONSTRAINT_ID ));
|
||||
case FN_getSlideAngularPos: //Number Function
|
||||
rc_push_num(rc_getSlideAngularPos( GETSLIDEANGULARPOS_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintDampingDirAng: //Number Function
|
||||
rc_push_num(rc_getConstraintDampingDirAng( GETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideDampingDirAng: //Number Function
|
||||
rc_push_num(rc_getSlideDampingDirAng( GETSLIDEDAMPINGDIRANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintDampingDirLin: //Number Function
|
||||
rc_push_num(rc_getConstraintDampingDirLin( GETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideDampingDirLin: //Number Function
|
||||
rc_push_num(rc_getSlideDampingDirLin( GETSLIDEDAMPINGDIRLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintDampingLimAng: //Number Function
|
||||
rc_push_num(rc_getConstraintDampingLimAng( GETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideDampingLimAng: //Number Function
|
||||
rc_push_num(rc_getSlideDampingLimAng( GETSLIDEDAMPINGLIMANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintDampingLimLin: //Number Function
|
||||
rc_push_num(rc_getConstraintDampingLimLin( GETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideDampingLimLin: //Number Function
|
||||
rc_push_num(rc_getSlideDampingLimLin( GETSLIDEDAMPINGLIMLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintDampingOrthoAng: //Number Function
|
||||
rc_push_num(rc_getConstraintDampingOrthoAng( GETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideDampingOrthoAng: //Number Function
|
||||
rc_push_num(rc_getSlideDampingOrthoAng( GETSLIDEDAMPINGORTHOANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintDampingOrthoLin: //Number Function
|
||||
rc_push_num(rc_getConstraintDampingOrthoLin( GETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideDampingOrthoLin: //Number Function
|
||||
rc_push_num(rc_getSlideDampingOrthoLin( GETSLIDEDAMPINGORTHOLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintLinearPos: //Number Function
|
||||
rc_push_num(rc_getConstraintLinearPos( GETCONSTRAINTLINEARPOS_CONSTRAINT_ID ));
|
||||
case FN_getSlideLinearPos: //Number Function
|
||||
rc_push_num(rc_getSlideLinearPos( GETSLIDELINEARPOS_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintLinDepth: //Number Function
|
||||
rc_push_num(rc_getConstraintLinDepth( GETCONSTRAINTLINDEPTH_CONSTRAINT_ID ));
|
||||
case FN_getSlideLinDepth: //Number Function
|
||||
rc_push_num(rc_getSlideLinDepth( GETSLIDELINDEPTH_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintLowerAngLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintLowerAngLimit( GETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getSlideLowerAngLimit: //Number Function
|
||||
rc_push_num(rc_getSlideLowerAngLimit( GETSLIDELOWERANGLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintLowerLinLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintLowerLinLimit( GETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getSlideLowerLinLimit: //Number Function
|
||||
rc_push_num(rc_getSlideLowerLinLimit( GETSLIDELOWERLINLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintRestitutionDirAng: //Number Function
|
||||
rc_push_num(rc_getConstraintRestitutionDirAng( GETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideRestitutionDirAng: //Number Function
|
||||
rc_push_num(rc_getSlideRestitutionDirAng( GETSLIDERESTITUTIONDIRANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintRestitutionDirLin: //Number Function
|
||||
rc_push_num(rc_getConstraintRestitutionDirLin( GETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideRestitutionDirLin: //Number Function
|
||||
rc_push_num(rc_getSlideRestitutionDirLin( GETSLIDERESTITUTIONDIRLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintRestitutionLimAng: //Number Function
|
||||
rc_push_num(rc_getConstraintRestitutionLimAng( GETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideRestitutionLimAng: //Number Function
|
||||
rc_push_num(rc_getSlideRestitutionLimAng( GETSLIDERESTITUTIONLIMANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintRestitutionLimLin: //Number Function
|
||||
rc_push_num(rc_getConstraintRestitutionLimLin( GETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideRestitutionLimLin: //Number Function
|
||||
rc_push_num(rc_getSlideRestitutionLimLin( GETSLIDERESTITUTIONLIMLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintRestitutionOrthoAng: //Number Function
|
||||
rc_push_num(rc_getConstraintRestitutionOrthoAng( GETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideRestitutionOrthoAng: //Number Function
|
||||
rc_push_num(rc_getSlideRestitutionOrthoAng( GETSLIDERESTITUTIONORTHOANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintRestitutionOrthoLin: //Number Function
|
||||
rc_push_num(rc_getConstraintRestitutionOrthoLin( GETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideRestitutionOrthoLin: //Number Function
|
||||
rc_push_num(rc_getSlideRestitutionOrthoLin( GETSLIDERESTITUTIONORTHOLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSoftnessDirAng: //Number Function
|
||||
rc_push_num(rc_getConstraintSoftnessDirAng( GETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideSoftnessDirAng: //Number Function
|
||||
rc_push_num(rc_getSlideSoftnessDirAng( GETSLIDESOFTNESSDIRANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSoftnessDirLin: //Number Function
|
||||
rc_push_num(rc_getConstraintSoftnessDirLin( GETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideSoftnessDirLin: //Number Function
|
||||
rc_push_num(rc_getSlideSoftnessDirLin( GETSLIDESOFTNESSDIRLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSoftnessLimAng: //Number Function
|
||||
rc_push_num(rc_getConstraintSoftnessLimAng( GETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideSoftnessLimAng: //Number Function
|
||||
rc_push_num(rc_getSlideSoftnessLimAng( GETSLIDESOFTNESSLIMANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSoftnessLimLin: //Number Function
|
||||
rc_push_num(rc_getConstraintSoftnessLimLin( GETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideSoftnessLimLin: //Number Function
|
||||
rc_push_num(rc_getSlideSoftnessLimLin( GETSLIDESOFTNESSLIMLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSoftnessOrthoAng: //Number Function
|
||||
rc_push_num(rc_getConstraintSoftnessOrthoAng( GETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID ));
|
||||
case FN_getSlideSoftnessOrthoAng: //Number Function
|
||||
rc_push_num(rc_getSlideSoftnessOrthoAng( GETSLIDESOFTNESSORTHOANG_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSoftnessOrthoLin: //Number Function
|
||||
rc_push_num(rc_getConstraintSoftnessOrthoLin( GETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID ));
|
||||
case FN_getSlideSoftnessOrthoLin: //Number Function
|
||||
rc_push_num(rc_getSlideSoftnessOrthoLin( GETSLIDESOFTNESSORTHOLIN_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSolveAngLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintSolveAngLimit( GETCONSTRAINTSOLVEANGLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getSlideSolveAngLimit: //Number Function
|
||||
rc_push_num(rc_getSlideSolveAngLimit( GETSLIDESOLVEANGLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintSolveLinLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintSolveLinLimit( GETCONSTRAINTSOLVELINLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getSlideSolveLinLimit: //Number Function
|
||||
rc_push_num(rc_getSlideSolveLinLimit( GETSLIDESOLVELINLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintUpperAngLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintUpperAngLimit( GETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getSlideUpperAngLimit: //Number Function
|
||||
rc_push_num(rc_getSlideUpperAngLimit( GETSLIDEUPPERANGLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintUpperLinLimit: //Number Function
|
||||
rc_push_num(rc_getConstraintUpperLinLimit( GETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID ));
|
||||
case FN_getSlideUpperLinLimit: //Number Function
|
||||
rc_push_num(rc_getSlideUpperLinLimit( GETSLIDEUPPERLINLIMIT_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_getConstraintUseFrameOffset: //Number Function
|
||||
rc_push_num(rc_getConstraintUseFrameOffset( GETCONSTRAINTUSEFRAMEOFFSET_CONSTRAINT_ID ));
|
||||
case FN_getSlideUseFrameOffset: //Number Function
|
||||
rc_push_num(rc_getSlideUseFrameOffset( GETSLIDEUSEFRAMEOFFSET_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_setConstraintDampingDirAng: //Sub Procedure
|
||||
rc_setConstraintDampingDirAng( SETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGDIRANG_N );
|
||||
case FN_setSlideDampingDirAng: //Sub Procedure
|
||||
rc_setSlideDampingDirAng( SETSLIDEDAMPINGDIRANG_CONSTRAINT_ID, SETSLIDEDAMPINGDIRANG_N );
|
||||
break;
|
||||
case FN_setConstraintDampingDirLin: //Sub Procedure
|
||||
rc_setConstraintDampingDirLin( SETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGDIRLIN_N );
|
||||
case FN_setSlideDampingDirLin: //Sub Procedure
|
||||
rc_setSlideDampingDirLin( SETSLIDEDAMPINGDIRLIN_CONSTRAINT_ID, SETSLIDEDAMPINGDIRLIN_N );
|
||||
break;
|
||||
case FN_setConstraintDampingLimAng: //Sub Procedure
|
||||
rc_setConstraintDampingLimAng( SETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGLIMANG_N );
|
||||
case FN_setSlideDampingLimAng: //Sub Procedure
|
||||
rc_setSlideDampingLimAng( SETSLIDEDAMPINGLIMANG_CONSTRAINT_ID, SETSLIDEDAMPINGLIMANG_N );
|
||||
break;
|
||||
case FN_setConstraintDampingLimLin: //Sub Procedure
|
||||
rc_setConstraintDampingLimLin( SETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGLIMLIN_N );
|
||||
case FN_setSlideDampingLimLin: //Sub Procedure
|
||||
rc_setSlideDampingLimLin( SETSLIDEDAMPINGLIMLIN_CONSTRAINT_ID, SETSLIDEDAMPINGLIMLIN_N );
|
||||
break;
|
||||
case FN_setConstraintDampingOrthoAng: //Sub Procedure
|
||||
rc_setConstraintDampingOrthoAng( SETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGORTHOANG_N );
|
||||
case FN_setSlideDampingOrthoAng: //Sub Procedure
|
||||
rc_setSlideDampingOrthoAng( SETSLIDEDAMPINGORTHOANG_CONSTRAINT_ID, SETSLIDEDAMPINGORTHOANG_N );
|
||||
break;
|
||||
case FN_setConstraintDampingOrthoLin: //Sub Procedure
|
||||
rc_setConstraintDampingOrthoLin( SETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGORTHOLIN_N );
|
||||
case FN_setSlideDampingOrthoLin: //Sub Procedure
|
||||
rc_setSlideDampingOrthoLin( SETSLIDEDAMPINGORTHOLIN_CONSTRAINT_ID, SETSLIDEDAMPINGORTHOLIN_N );
|
||||
break;
|
||||
case FN_setConstraintLowerAngLimit: //Sub Procedure
|
||||
rc_setConstraintLowerAngLimit( SETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID, SETCONSTRAINTLOWERANGLIMIT_N );
|
||||
case FN_setSlideLowerAngLimit: //Sub Procedure
|
||||
rc_setSlideLowerAngLimit( SETSLIDELOWERANGLIMIT_CONSTRAINT_ID, SETSLIDELOWERANGLIMIT_N );
|
||||
break;
|
||||
case FN_setConstraintLowerLinLimit: //Sub Procedure
|
||||
rc_setConstraintLowerLinLimit( SETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID, SETCONSTRAINTLOWERLINLIMIT_N );
|
||||
case FN_setSlideLowerLinLimit: //Sub Procedure
|
||||
rc_setSlideLowerLinLimit( SETSLIDELOWERLINLIMIT_CONSTRAINT_ID, SETSLIDELOWERLINLIMIT_N );
|
||||
break;
|
||||
case FN_setConstraintRestitutionDirAng: //Sub Procedure
|
||||
rc_setConstraintRestitutionDirAng( SETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONDIRANG_N );
|
||||
case FN_setSlideRestitutionDirAng: //Sub Procedure
|
||||
rc_setSlideRestitutionDirAng( SETSLIDERESTITUTIONDIRANG_CONSTRAINT_ID, SETSLIDERESTITUTIONDIRANG_N );
|
||||
break;
|
||||
case FN_setConstraintRestitutionDirLin: //Sub Procedure
|
||||
rc_setConstraintRestitutionDirLin( SETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONDIRLIN_N );
|
||||
case FN_setSlideRestitutionDirLin: //Sub Procedure
|
||||
rc_setSlideRestitutionDirLin( SETSLIDERESTITUTIONDIRLIN_CONSTRAINT_ID, SETSLIDERESTITUTIONDIRLIN_N );
|
||||
break;
|
||||
case FN_setConstraintRestitutionLimAng: //Sub Procedure
|
||||
rc_setConstraintRestitutionLimAng( SETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONLIMANG_N );
|
||||
case FN_setSlideRestitutionLimAng: //Sub Procedure
|
||||
rc_setSlideRestitutionLimAng( SETSLIDERESTITUTIONLIMANG_CONSTRAINT_ID, SETSLIDERESTITUTIONLIMANG_N );
|
||||
break;
|
||||
case FN_setConstraintRestitutionLimLin: //Sub Procedure
|
||||
rc_setConstraintRestitutionLimLin( SETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONLIMLIN_N );
|
||||
case FN_setSlideRestitutionLimLin: //Sub Procedure
|
||||
rc_setSlideRestitutionLimLin( SETSLIDERESTITUTIONLIMLIN_CONSTRAINT_ID, SETSLIDERESTITUTIONLIMLIN_N );
|
||||
break;
|
||||
case FN_setConstraintRestitutionOrthoAng: //Sub Procedure
|
||||
rc_setConstraintRestitutionOrthoAng( SETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONORTHOANG_N );
|
||||
case FN_setSlideRestitutionOrthoAng: //Sub Procedure
|
||||
rc_setSlideRestitutionOrthoAng( SETSLIDERESTITUTIONORTHOANG_CONSTRAINT_ID, SETSLIDERESTITUTIONORTHOANG_N );
|
||||
break;
|
||||
case FN_setConstraintRestitutionOrthoLin: //Sub Procedure
|
||||
rc_setConstraintRestitutionOrthoLin( SETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONORTHOLIN_N );
|
||||
case FN_setSlideRestitutionOrthoLin: //Sub Procedure
|
||||
rc_setSlideRestitutionOrthoLin( SETSLIDERESTITUTIONORTHOLIN_CONSTRAINT_ID, SETSLIDERESTITUTIONORTHOLIN_N );
|
||||
break;
|
||||
case FN_setConstraintSoftnessDirAng: //Sub Procedure
|
||||
rc_setConstraintSoftnessDirAng( SETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSDIRANG_N );
|
||||
case FN_setSlideSoftnessDirAng: //Sub Procedure
|
||||
rc_setSlideSoftnessDirAng( SETSLIDESOFTNESSDIRANG_CONSTRAINT_ID, SETSLIDESOFTNESSDIRANG_N );
|
||||
break;
|
||||
case FN_setConstraintSoftnessDirLin: //Sub Procedure
|
||||
rc_setConstraintSoftnessDirLin( SETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSDIRLIN_N );
|
||||
case FN_setSlideSoftnessDirLin: //Sub Procedure
|
||||
rc_setSlideSoftnessDirLin( SETSLIDESOFTNESSDIRLIN_CONSTRAINT_ID, SETSLIDESOFTNESSDIRLIN_N );
|
||||
break;
|
||||
case FN_setConstraintSoftnessLimAng: //Sub Procedure
|
||||
rc_setConstraintSoftnessLimAng( SETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSLIMANG_N );
|
||||
case FN_setSlideSoftnessLimAng: //Sub Procedure
|
||||
rc_setSlideSoftnessLimAng( SETSLIDESOFTNESSLIMANG_CONSTRAINT_ID, SETSLIDESOFTNESSLIMANG_N );
|
||||
break;
|
||||
case FN_setConstraintSoftnessLimLin: //Sub Procedure
|
||||
rc_setConstraintSoftnessLimLin( SETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSLIMLIN_N );
|
||||
case FN_setSlideSoftnessLimLin: //Sub Procedure
|
||||
rc_setSlideSoftnessLimLin( SETSLIDESOFTNESSLIMLIN_CONSTRAINT_ID, SETSLIDESOFTNESSLIMLIN_N );
|
||||
break;
|
||||
case FN_setConstraintSoftnessOrthoAng: //Sub Procedure
|
||||
rc_setConstraintSoftnessOrthoAng( SETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSORTHOANG_N );
|
||||
case FN_setSlideSoftnessOrthoAng: //Sub Procedure
|
||||
rc_setSlideSoftnessOrthoAng( SETSLIDESOFTNESSORTHOANG_CONSTRAINT_ID, SETSLIDESOFTNESSORTHOANG_N );
|
||||
break;
|
||||
case FN_setConstraintSoftnessOrthoLin: //Sub Procedure
|
||||
rc_setConstraintSoftnessOrthoLin( SETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSORTHOLIN_N );
|
||||
case FN_setSlideSoftnessOrthoLin: //Sub Procedure
|
||||
rc_setSlideSoftnessOrthoLin( SETSLIDESOFTNESSORTHOLIN_CONSTRAINT_ID, SETSLIDESOFTNESSORTHOLIN_N );
|
||||
break;
|
||||
case FN_setConstraintUpperAngLimit: //Sub Procedure
|
||||
rc_setConstraintUpperAngLimit( SETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID, SETCONSTRAINTUPPERANGLIMIT_N );
|
||||
case FN_setSlideUpperAngLimit: //Sub Procedure
|
||||
rc_setSlideUpperAngLimit( SETSLIDEUPPERANGLIMIT_CONSTRAINT_ID, SETSLIDEUPPERANGLIMIT_N );
|
||||
break;
|
||||
case FN_setConstraintUpperLinLimit: //Sub Procedure
|
||||
rc_setConstraintUpperLinLimit( SETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID, SETCONSTRAINTUPPERLINLIMIT_N );
|
||||
case FN_setSlideUpperLinLimit: //Sub Procedure
|
||||
rc_setSlideUpperLinLimit( SETSLIDEUPPERLINLIMIT_CONSTRAINT_ID, SETSLIDEUPPERLINLIMIT_N );
|
||||
break;
|
||||
case FN_ConstraintExists: //Number Function
|
||||
rc_push_num(rc_constraintExists( CONSTRAINTEXISTS_CONSTRAINT_ID ));
|
||||
break;
|
||||
case FN_SetCameraPosition: //Sub Procedure
|
||||
rc_setCameraPosition( SETCAMERAPOSITION_X, SETCAMERAPOSITION_Y, SETCAMERAPOSITION_Z );
|
||||
@@ -2021,9 +2036,6 @@ case FN_AddSceneSkyDomeEx: //Sub Procedure
|
||||
case FN_RemoveSceneSky: //Sub Procedure
|
||||
rc_removeSceneSky( );
|
||||
break;
|
||||
case FN_SetWorld3DDeltaTime: //Sub Procedure
|
||||
rc_setWorld3DDeltaTime( SETWORLD3DDELTATIME_DT );
|
||||
break;
|
||||
case FN_SetWorld3DMaxSubSteps: //Sub Procedure
|
||||
rc_setWorld3DMaxSubSteps( SETWORLD3DMAXSUBSTEPS_STEPS );
|
||||
break;
|
||||
@@ -2063,17 +2075,17 @@ case FN_particleIsUsingNormalDirection: //Number Function
|
||||
case FN_setParticleMesh: //Sub Procedure
|
||||
rc_setParticleMesh( SETPARTICLEMESH_ACTOR, SETPARTICLEMESH_MESH );
|
||||
break;
|
||||
case FN_setParticleMinParticlesPerSecond: //Sub Procedure
|
||||
rc_setParticleMinParticlesPerSecond( SETPARTICLEMINPARTICLESPERSECOND_ACTOR, SETPARTICLEMINPARTICLESPERSECOND_MINPARTICLESPERSECOND );
|
||||
case FN_setMinParticlesPerSecond: //Sub Procedure
|
||||
rc_setMinParticlesPerSecond( SETMINPARTICLESPERSECOND_ACTOR, SETMINPARTICLESPERSECOND_MINPARTICLESPERSECOND );
|
||||
break;
|
||||
case FN_getParticleMinParticlesPerSecond: //Number Function
|
||||
rc_push_num(rc_getParticleMinParticlesPerSecond( GETPARTICLEMINPARTICLESPERSECOND_ACTOR ));
|
||||
case FN_getMinParticlesPerSecond: //Number Function
|
||||
rc_push_num(rc_getMinParticlesPerSecond( GETMINPARTICLESPERSECOND_ACTOR ));
|
||||
break;
|
||||
case FN_setParticleMaxParticlesPerSecond: //Sub Procedure
|
||||
rc_setParticleMaxParticlesPerSecond( SETPARTICLEMAXPARTICLESPERSECOND_ACTOR, SETPARTICLEMAXPARTICLESPERSECOND_MAXPARTICLESPERSECOND );
|
||||
case FN_setMaxParticlesPerSecond: //Sub Procedure
|
||||
rc_setMaxParticlesPerSecond( SETMAXPARTICLESPERSECOND_ACTOR, SETMAXPARTICLESPERSECOND_MAXPARTICLESPERSECOND );
|
||||
break;
|
||||
case FN_getParticleMaxParticlesPerSecond: //Number Function
|
||||
rc_push_num(rc_getParticleMaxParticlesPerSecond( GETPARTICLEMAXPARTICLESPERSECOND_ACTOR ));
|
||||
case FN_getMaxParticlesPerSecond: //Number Function
|
||||
rc_push_num(rc_getMaxParticlesPerSecond( GETMAXPARTICLESPERSECOND_ACTOR ));
|
||||
break;
|
||||
case FN_setParticleMinStartColor: //Sub Procedure
|
||||
rc_setParticleMinStartColor( SETPARTICLEMINSTARTCOLOR_ACTOR, SETPARTICLEMINSTARTCOLOR_COLOR );
|
||||
@@ -2159,6 +2171,9 @@ case FN_useParticleOutlineOnly: //Sub Procedure
|
||||
case FN_particleIsUsingOutlineOnly: //Number Function
|
||||
rc_push_num(rc_particleIsUsingOutlineOnly( PARTICLEISUSINGOUTLINEONLY_ACTOR ));
|
||||
break;
|
||||
case FN_getParticleType: //Number Function
|
||||
rc_push_num(rc_getParticleType( GETPARTICLETYPE_ACTOR ));
|
||||
break;
|
||||
case FN_lightIsCastingShadow: //Number Function
|
||||
rc_push_num(rc_lightIsCastingShadow( LIGHTISCASTINGSHADOW_ACTOR ));
|
||||
break;
|
||||
@@ -2495,4 +2510,7 @@ case FN_setActorMaterialType: //Sub Procedure
|
||||
case FN_getActorMaterialType: //Number Function
|
||||
rc_push_num(rc_getActorMaterialType( GETACTORMATERIALTYPE_ACTOR, GETACTORMATERIALTYPE_MATERIAL ));
|
||||
break;
|
||||
case FN_MaterialExists: //Number Function
|
||||
rc_push_num(rc_materialExists( MATERIALEXISTS_MATERIAL ));
|
||||
break;
|
||||
|
||||
|
||||
@@ -853,27 +853,34 @@ void sortCanvasZ()
|
||||
//std::cout << std::endl;
|
||||
}
|
||||
|
||||
Uint32 rc_canvasOpen(int w, int h, int vx, int vy, int vw, int vh, int mode)
|
||||
int rc_canvasOpen(int w, int h, int vx, int vy, int vw, int vh, int mode, int canvas_type=RC_CANVAS_TYPE_2D)
|
||||
{
|
||||
if(!VideoDriver)
|
||||
return -1;
|
||||
|
||||
rc_canvas_obj canvas;
|
||||
canvas.type = canvas_type;
|
||||
canvas.show3D = false;
|
||||
canvas.physics2D.enabled = false;
|
||||
|
||||
canvas.texture = VideoDriver->addRenderTargetTexture(irr::core::dimension2d<u32>(w,h), "rt", ECF_A8R8G8B8);
|
||||
canvas.sprite_layer = VideoDriver->addRenderTargetTexture(irr::core::dimension2d<u32>(w,h), "rt", ECF_A8R8G8B8);
|
||||
//canvas.sprite_layer = VideoDriver->addRenderTargetTexture(irr::core::dimension2d<u32>(w,h), "rt", ECF_A8R8G8B8);
|
||||
|
||||
if(!canvas.texture)
|
||||
return -1;
|
||||
|
||||
|
||||
if(SceneManager)
|
||||
if(SceneManager && canvas_type==RC_CANVAS_TYPE_3D)
|
||||
{
|
||||
canvas.show3D = true;
|
||||
canvas.camera.init(SceneManager, 0, 0, 0);
|
||||
//canvas.camera = SceneManager->addCameraSceneNode(0, vector3df(0,0,0), vector3df(0,0,0));
|
||||
//canvas.camera->setPosition(irr::core::vector3df(0,0,0));
|
||||
//canvas.camera->setTarget(irr::core::vector3df(0,0,100));
|
||||
//canvas.camera->bindTargetAndRotation(true);
|
||||
}
|
||||
else if(!SceneManager)
|
||||
return -1;
|
||||
|
||||
//std::cout << "texture format = " << canvas.texture->getColorFormat() << std::endl;
|
||||
|
||||
@@ -893,12 +900,16 @@ Uint32 rc_canvasOpen(int w, int h, int vx, int vy, int vw, int vh, int mode)
|
||||
canvas.color_mod = irr::video::SColor(255,255,255,255).color;
|
||||
|
||||
//2D Physics World
|
||||
b2Vec2 gravity(0, -9.8);
|
||||
canvas.physics2D.world = new b2World(gravity);
|
||||
canvas.physics2D.timeStep = 1/20.0; //the length of time passed to simulate (seconds)
|
||||
canvas.physics2D.velocityIterations = 8; //how strongly to correct velocity
|
||||
canvas.physics2D.positionIterations = 3; //how strongly to correct position
|
||||
|
||||
canvas.physics2D.world = NULL;
|
||||
if(canvas_type == RC_CANVAS_TYPE_SPRITE)
|
||||
{
|
||||
b2Vec2 gravity(0, -9.8);
|
||||
canvas.physics2D.world = new b2World(gravity);
|
||||
canvas.physics2D.timeStep = 1/20.0; //the length of time passed to simulate (seconds)
|
||||
canvas.physics2D.velocityIterations = 8; //how strongly to correct velocity
|
||||
canvas.physics2D.positionIterations = 3; //how strongly to correct position
|
||||
canvas.physics2D.enabled = true;
|
||||
}
|
||||
|
||||
switch(mode)
|
||||
{
|
||||
@@ -957,6 +968,20 @@ void rc_canvasClose(int canvas_id)
|
||||
|
||||
rc_canvas[canvas_id].texture = NULL;
|
||||
|
||||
if(rc_canvas[canvas_id].physics2D.world)
|
||||
delete rc_canvas[canvas_id].physics2D.world;
|
||||
|
||||
rc_canvas[canvas_id].physics2D.world = NULL;
|
||||
|
||||
//sprites are destroyed when the world is deleted so I just to set the active attribute to false and set the body to NULL
|
||||
for(int i = 0; i < rc_canvas[canvas_id].sprite.size(); i++)
|
||||
{
|
||||
rc_canvas[canvas_id].sprite[i]->active = false;
|
||||
rc_canvas[canvas_id].sprite[i]->physics.body = NULL;
|
||||
}
|
||||
|
||||
rc_canvas[canvas_id].sprite.clear();
|
||||
|
||||
if(rc_active_canvas == canvas_id)
|
||||
rc_active_canvas = -1;
|
||||
|
||||
@@ -976,6 +1001,22 @@ void rc_setCanvas3D(int canvas_id, bool flag)
|
||||
rc_canvas[canvas_id].show3D = flag;
|
||||
}
|
||||
|
||||
int rc_canvasOpen3D(int vx, int vy, int vw, int vh, int mode)
|
||||
{
|
||||
return rc_canvasOpen(vw, vh, vx, vy, vw, vh, mode, RC_CANVAS_TYPE_3D);
|
||||
}
|
||||
|
||||
int rc_canvasOpenSpriteLayer(int w, int h, int vx, int vy, int vw, int vh)
|
||||
{
|
||||
return rc_canvasOpen(w, h, vx, vy, vw, vh, 1, RC_CANVAS_TYPE_SPRITE);
|
||||
}
|
||||
|
||||
void rc_setCanvasPhysics2D(int canvas_id, bool flag)
|
||||
{
|
||||
if(canvas_id > 0 && canvas_id < rc_canvas.size())
|
||||
rc_canvas[canvas_id].physics2D.enabled = flag;
|
||||
}
|
||||
|
||||
void rc_setActiveCanvas(int canvas_id)
|
||||
{
|
||||
rc_active_canvas = canvas_id;
|
||||
@@ -1167,8 +1208,12 @@ int rc_cloneCanvas(int origin_canvas_id, int mode)
|
||||
return -1;
|
||||
|
||||
rc_canvas_obj canvas;
|
||||
canvas.type = rc_canvas[origin_canvas_id].type;
|
||||
canvas.physics2D.enabled = false; //There is no need for this to process its own physics since its done on the origin
|
||||
canvas.show3D = rc_canvas[origin_canvas_id].show3D;
|
||||
canvas.color_mod = rc_canvas[origin_canvas_id].color_mod;
|
||||
canvas.texture = rc_canvas[origin_canvas_id].texture;
|
||||
canvas.sprite_layer = rc_canvas[origin_canvas_id].sprite_layer;
|
||||
//canvas.sprite_layer = rc_canvas[origin_canvas_id].sprite_layer;
|
||||
|
||||
if(!canvas.texture)
|
||||
return -1;
|
||||
@@ -3119,10 +3164,10 @@ int rc_createSprite(int img_id)
|
||||
if(rc_active_canvas < 0 || rc_active_canvas >= rc_canvas.size())
|
||||
return -1;
|
||||
|
||||
if(rc_canvas[rc_active_canvas].show3D)
|
||||
if(rc_canvas[rc_active_canvas].type != RC_CANVAS_TYPE_SPRITE)
|
||||
return -1;
|
||||
|
||||
std::cout << "debug 1" << std::endl;
|
||||
//std::cout << "debug 1" << std::endl;
|
||||
|
||||
int spr_id = -1;
|
||||
for(int i = 0; i < rc_sprite.size(); i++)
|
||||
@@ -3180,6 +3225,7 @@ void rc_deleteSprite(int spr_id)
|
||||
}
|
||||
|
||||
rc_sprite[spr_id].active = false;
|
||||
rc_sprite[spr_id].parent_canvas = -1;
|
||||
|
||||
for(int i = 0; i < rc_canvas[rc_active_canvas].sprite.size(); i++)
|
||||
{
|
||||
@@ -3193,7 +3239,7 @@ void rc_deleteSprite(int spr_id)
|
||||
}
|
||||
}
|
||||
|
||||
void rc_setSpriteBodyType(int spr_id, int body_type)
|
||||
void rc_setSpriteType(int spr_id, int body_type)
|
||||
{
|
||||
if(spr_id < 0 || spr_id >= rc_sprite.size())
|
||||
return;
|
||||
@@ -3219,14 +3265,13 @@ void rc_setSpritePosition(int spr_id, double x, double y)
|
||||
//This function is called on each canvas on update
|
||||
void drawSprites(int canvas_id)
|
||||
{
|
||||
if(rc_canvas[canvas_id].show3D)
|
||||
return;
|
||||
|
||||
float step = rc_canvas[canvas_id].physics2D.timeStep;
|
||||
int32 velocityIterations = rc_canvas[canvas_id].physics2D.velocityIterations;
|
||||
int32 positionIterations = rc_canvas[canvas_id].physics2D.positionIterations;
|
||||
|
||||
rc_canvas[canvas_id].physics2D.world->Step(step, velocityIterations, positionIterations);
|
||||
if(rc_canvas[canvas_id].physics2D.enabled)
|
||||
rc_canvas[canvas_id].physics2D.world->Step(step, velocityIterations, positionIterations);
|
||||
|
||||
//Setting the render target to the current canvas. NOTE: I might change this target to a separate sprite layer later.
|
||||
VideoDriver->setRenderTarget(rc_canvas[canvas_id].texture, false, false);
|
||||
|
||||
@@ -3252,6 +3297,8 @@ void drawSprites(int canvas_id)
|
||||
|
||||
b2Vec2 physics_pos;
|
||||
|
||||
irr::f32 RAD_TO_DEG = 180.0/3.141592653589793238463;
|
||||
|
||||
for(int spr_index = 0; spr_index < rc_canvas[canvas_id].sprite.size(); spr_index++)
|
||||
{
|
||||
rc_sprite2D_obj* sprite = rc_canvas[canvas_id].sprite[spr_index];
|
||||
@@ -3272,7 +3319,7 @@ void drawSprites(int canvas_id)
|
||||
|
||||
|
||||
rotationPoint.set(x + (src_size.Width/2), y + (src_size.Height/2));
|
||||
rotation = -1 * (sprite->physics.body->GetAngle() * (180.0/3.141592653589793238463)); //convert Box2D radians to degrees
|
||||
rotation = -1 * (sprite->physics.body->GetAngle() * RAD_TO_DEG); //convert Box2D radians to degrees
|
||||
|
||||
scale.set(sprite->scale.X, sprite->scale.Y);
|
||||
|
||||
@@ -3724,7 +3771,9 @@ bool rc_update()
|
||||
|
||||
//std::cout << "draw canvas[" << canvas_id << "]" << std::endl;
|
||||
|
||||
drawSprites(canvas_id);
|
||||
if(rc_canvas[canvas_id].type == RC_CANVAS_TYPE_SPRITE)
|
||||
drawSprites(canvas_id);
|
||||
|
||||
draw2DImage2(VideoDriver, rc_canvas[canvas_id].texture, src, dest, irr::core::vector2d<irr::s32>(0, 0), 0, true, color, screenSize);
|
||||
|
||||
//drawSprites(canvas_id);
|
||||
|
||||
@@ -358,6 +358,18 @@ void rc_setActorCollisionShape(int actor_id, int shape_type, double mass)
|
||||
rc_actor[actor_id].physics.rigid_body->getIdentification()->setId(actor_id);
|
||||
rc_actor[actor_id].physics.rigid_body->getPointer()->setActivationState(ACTIVE_TAG);
|
||||
rc_actor[actor_id].physics.rigid_body->getPointer()->setActivationState(DISABLE_DEACTIVATION);
|
||||
rc_actor[actor_id].physics.rigid_body->getPointer()->updateInertiaTensor();
|
||||
}
|
||||
}
|
||||
|
||||
void rc_setActorSleepState(int actor, int state)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
|
||||
if(rc_actor[actor].physics.rigid_body)
|
||||
{
|
||||
rc_actor[actor].physics.rigid_body->getPointer()->forceActivationState(state);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -399,6 +411,14 @@ bool rc_actorIsSolid(int actor_id)
|
||||
return rc_actor[actor_id].physics.isSolid;
|
||||
}
|
||||
|
||||
bool rc_actorExists(int actor_id)
|
||||
{
|
||||
if(actor_id < 0 || actor_id >= rc_actor.size())
|
||||
return false;
|
||||
|
||||
return (rc_actor[actor_id].node_type > 0);
|
||||
}
|
||||
|
||||
|
||||
bool rc_getActorCollision(int actor1, int actor2)
|
||||
{
|
||||
@@ -1278,6 +1298,14 @@ int rc_getActorMaterial(int actor, int material_num)
|
||||
return material_id;
|
||||
}
|
||||
|
||||
bool rc_materialExists(int material_id)
|
||||
{
|
||||
if(material_id < 0 || material_id >= rc_material.size())
|
||||
return false;
|
||||
|
||||
return rc_material[material_id].isUsed;
|
||||
}
|
||||
|
||||
void rc_setMaterialAmbientColor(int material_id, Uint32 color)
|
||||
{
|
||||
if(material_id < 0 || material_id >= rc_material.size())
|
||||
@@ -2028,6 +2056,24 @@ int rc_getActorTexture(int actor, int material, int layer)
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool rc_getActorTransform(int actor, int t_mat)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return false;
|
||||
|
||||
if(t_mat < 0 || t_mat >= rc_matrix.size())
|
||||
return false;
|
||||
|
||||
if(!rc_matrix[t_mat].active)
|
||||
return false;
|
||||
|
||||
irr::core::matrix4 m = rc_actor[actor].mesh_node->getAbsoluteTransformation();
|
||||
rc_convertFromIrrMatrix(m, t_mat);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//set actor position
|
||||
void rc_setActorPosition(int actor, double x, double y, double z)
|
||||
{
|
||||
@@ -2053,7 +2099,7 @@ void rc_setActorPosition(int actor, double x, double y, double z)
|
||||
}
|
||||
|
||||
//translate actor from local orientation
|
||||
void rc_translateActor(int actor, double x, double y, double z)
|
||||
void rc_translateActorLocal(int actor, double x, double y, double z)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
@@ -2665,7 +2711,7 @@ void rc_getActorRotationQ(int actor, double* x, double* y, double* z, double* w)
|
||||
}
|
||||
}
|
||||
|
||||
void rc_getActorLinearVelocity(int actor, double* x, double* y, double* z)
|
||||
void rc_getActorLinearVelocityWorld(int actor, double* x, double* y, double* z)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
@@ -2683,7 +2729,7 @@ void rc_getActorLinearVelocity(int actor, double* x, double* y, double* z)
|
||||
}
|
||||
}
|
||||
|
||||
void rc_getActorAngularVelocity(int actor, double* x, double* y, double* z)
|
||||
void rc_getActorAngularVelocityWorld(int actor, double* x, double* y, double* z)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
@@ -2991,7 +3037,7 @@ int rc_createPointConstraintEx(int actorA, int actorB, double pxA, double pyA, d
|
||||
}
|
||||
}
|
||||
|
||||
void rc_setConstraintPivotA(int constraint_id, double x, double y, double z)
|
||||
void rc_setPointPivotA(int constraint_id, double x, double y, double z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -3003,7 +3049,7 @@ void rc_setConstraintPivotA(int constraint_id, double x, double y, double z)
|
||||
}
|
||||
}
|
||||
|
||||
void rc_setConstraintPivotB(int constraint_id, double x, double y, double z)
|
||||
void rc_setPointPivotB(int constraint_id, double x, double y, double z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -3015,7 +3061,7 @@ void rc_setConstraintPivotB(int constraint_id, double x, double y, double z)
|
||||
}
|
||||
}
|
||||
|
||||
int rc_createHingeConstraint(int actorA, double pxA, double pyA, double pzA, double axA, double ayA, double azA)
|
||||
int rc_createHingeConstraint(int actorA, int frameInA_matrix, bool useReferenceFrameA)
|
||||
{
|
||||
if(actorA < 0 || actorA >= rc_actor.size())
|
||||
return -1;
|
||||
@@ -3024,9 +3070,12 @@ int rc_createHingeConstraint(int actorA, double pxA, double pyA, double pzA, dou
|
||||
{
|
||||
rc_constraint_obj hinge;
|
||||
hinge.type = RC_CONSTRAINT_TYPE_HINGE;
|
||||
btVector3 pvtA(pxA, pyA, pzA);
|
||||
btVector3 axis(axA, ayA, azA);
|
||||
hinge.constraint = new btHingeConstraint(*rc_actor[actorA].physics.rigid_body->getPointer(), pvtA, axis);
|
||||
|
||||
irr::core::matrix4 irr_matA = rc_convertToIrrMatrix(frameInA_matrix);
|
||||
btTransform frameInA;
|
||||
btTransformFromIrrlichtMatrix(irr_matA, frameInA);
|
||||
|
||||
hinge.constraint = new btHingeConstraint(*rc_actor[actorA].physics.rigid_body->getPointer(), frameInA, useReferenceFrameA);
|
||||
rc_physics3D.world->getPointer()->addConstraint(hinge.constraint);
|
||||
int constraint_id = getConstraintId();
|
||||
rc_physics3D.constraints[constraint_id] = hinge;
|
||||
@@ -3035,8 +3084,7 @@ int rc_createHingeConstraint(int actorA, double pxA, double pyA, double pzA, dou
|
||||
}
|
||||
|
||||
|
||||
int rc_createHingeConstraintEx(int actorA, int actorB, double pxA, double pyA, double pzA, double pxB, double pyB, double pzB,
|
||||
double axA, double ayA, double azA, double axB, double ayB, double azB)
|
||||
int rc_createHingeConstraintEx(int actorA, int actorB, int frameInA_matrix, int frameInB_matrix, bool useReferenceFrameA)
|
||||
{
|
||||
if(actorA < 0 || actorA >= rc_actor.size() || actorB < 0 || actorB >= rc_actor.size())
|
||||
return -1;
|
||||
@@ -3046,13 +3094,14 @@ int rc_createHingeConstraintEx(int actorA, int actorB, double pxA, double pyA,
|
||||
rc_constraint_obj hinge;
|
||||
hinge.type = RC_CONSTRAINT_TYPE_HINGE;
|
||||
|
||||
btVector3 pvtA(pxA, pyA, pzA);
|
||||
btVector3 axisA(axA, ayA, azA);
|
||||
irr::core::matrix4 irr_matA = rc_convertToIrrMatrix(frameInA_matrix);
|
||||
irr::core::matrix4 irr_matB = rc_convertToIrrMatrix(frameInB_matrix);
|
||||
|
||||
btVector3 pvtB(pxB, pyB, pzB);
|
||||
btVector3 axisB(axB, ayB, azB);
|
||||
btTransform frameInA, frameInB;
|
||||
btTransformFromIrrlichtMatrix(irr_matA, frameInA);
|
||||
btTransformFromIrrlichtMatrix(irr_matB, frameInB);
|
||||
|
||||
hinge.constraint = new btHingeConstraint(*rc_actor[actorA].physics.rigid_body->getPointer(), *rc_actor[actorB].physics.rigid_body->getPointer(), pvtA, pvtB, axisA, axisB);
|
||||
hinge.constraint = new btHingeConstraint(*rc_actor[actorA].physics.rigid_body->getPointer(), *rc_actor[actorB].physics.rigid_body->getPointer(), frameInA, frameInB, useReferenceFrameA);
|
||||
rc_physics3D.world->getPointer()->addConstraint(hinge.constraint);
|
||||
int constraint_id = getConstraintId();
|
||||
rc_physics3D.constraints[constraint_id] = hinge;
|
||||
@@ -3169,6 +3218,17 @@ void rc_deleteConstraint(int constraint_id)
|
||||
}
|
||||
}
|
||||
|
||||
bool rc_constraintExists(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return false;
|
||||
|
||||
if(rc_physics3D.constraints[constraint_id].constraint)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void rc_getConstraintFrameOffsetA(int constraint_id, double* x, double* y, double* z, double* rx, double* ry, double* rz)
|
||||
{
|
||||
@@ -3419,7 +3479,7 @@ int rc_getConstraintBFrame(int constraint_id, int mA)
|
||||
}
|
||||
|
||||
//btHingeConstraint::setAxis()
|
||||
void rc_setConstraintAxis(int constraint_id, double x, double y, double z)
|
||||
void rc_setHingeAxis(int constraint_id, double x, double y, double z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -3527,7 +3587,7 @@ void rc_setConeLimit(int constraint_id, double swingSpan1, double swingSpan2, do
|
||||
}
|
||||
|
||||
//btHingeConstraint::getLimitBiasFactor()
|
||||
double rc_getConstraintLimitBiasFactor(int constraint_id)
|
||||
double rc_getHingeLimitBiasFactor(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3542,7 +3602,7 @@ double rc_getConstraintLimitBiasFactor(int constraint_id)
|
||||
}
|
||||
|
||||
//btHingeConstraint::getLimitRelaxationFactor()
|
||||
double rc_getLimitRelaxationFactor(int constraint_id)
|
||||
double rc_getHingeLimitRelaxationFactor(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3557,7 +3617,7 @@ double rc_getLimitRelaxationFactor(int constraint_id)
|
||||
}
|
||||
|
||||
//btHingeConstraint::getLimitSign()
|
||||
double rc_getConstraintLimitSign(int constraint_id)
|
||||
double rc_getHingeLimitSign(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3671,7 +3731,7 @@ int rc_getConstraintFixedActor(int constraint_id)
|
||||
}
|
||||
|
||||
//btPoint2PointConstraint::getPivotInA()
|
||||
void rc_getConstraintPivotA(int constraint_id, double* x, double* y, double* z)
|
||||
void rc_getPointPivotA(int constraint_id, double* x, double* y, double* z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -3691,7 +3751,7 @@ void rc_getConstraintPivotA(int constraint_id, double* x, double* y, double* z)
|
||||
}
|
||||
|
||||
//btPoint2PointConstraint::getPivotInB()
|
||||
void rc_getConstraintPivotB(int constraint_id, double* x, double* y, double* z)
|
||||
void rc_getPointPivotB(int constraint_id, double* x, double* y, double* z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -3816,7 +3876,7 @@ void rc_setConstraintSolverIterations(int constraint_id, int num)
|
||||
|
||||
//
|
||||
//btConeTwistConstraint::getBiasFactor()
|
||||
double rc_getConstraintBiasFactor(int constraint_id)
|
||||
double rc_getConeBiasFactor(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3831,7 +3891,7 @@ double rc_getConstraintBiasFactor(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getDamping()
|
||||
double rc_getConstraintDamping(int constraint_id)
|
||||
double rc_getConeDamping(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3846,7 +3906,7 @@ double rc_getConstraintDamping(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getFixThresh()
|
||||
double rc_getConstraintFixThresh(int constraint_id)
|
||||
double rc_getConeFixThresh(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3861,7 +3921,7 @@ double rc_getConstraintFixThresh(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getLimit()
|
||||
double rc_getConstraintLimit(int constraint_id, int limit_index)
|
||||
double rc_getConeLimit(int constraint_id, int limit_index)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3926,7 +3986,7 @@ double rc_getConstraintSolverIterations(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::GetPointForAngle()
|
||||
void rc_getConstraintAnglePoint(int constraint_id, double angle, double len, double* x, double* y, double* z)
|
||||
void rc_getConeAnglePoint(int constraint_id, double angle, double len, double* x, double* y, double* z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -3962,7 +4022,7 @@ bool rc_getConstraintAngularOnly(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getSolveSwingLimit()
|
||||
int rc_getConstraintSolveSwingLimit(int constraint_id)
|
||||
int rc_getConeSolveSwingLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3976,8 +4036,7 @@ int rc_getConstraintSolveSwingLimit(int constraint_id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getSolveTwistLimit()
|
||||
int rc_getConstraintSolveTwistLimit(int constraint_id)
|
||||
int rc_getConeSolveTwistLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -3991,23 +4050,8 @@ int rc_getConstraintSolveTwistLimit(int constraint_id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
//btHingeConstraint::getSolveLimit()
|
||||
int rc_getConstraintSolveLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
|
||||
if(rc_physics3D.constraints[constraint_id].type == RC_CONSTRAINT_TYPE_HINGE)
|
||||
{
|
||||
btHingeConstraint* hinge = (btHingeConstraint*) rc_physics3D.constraints[constraint_id].constraint;
|
||||
return hinge->getSolveLimit();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getSwingSpan1()
|
||||
double rc_getConstraintSwingSpan1(int constraint_id)
|
||||
double rc_getConeSwingSpan1(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4022,7 +4066,7 @@ double rc_getConstraintSwingSpan1(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getSwingSpan2()
|
||||
int rc_getConstraintSwingSpan2(int constraint_id)
|
||||
int rc_getConeSwingSpan2(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4037,7 +4081,7 @@ int rc_getConstraintSwingSpan2(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getTwistAngle()
|
||||
double rc_getConstraintTwistAngle(int constraint_id)
|
||||
double rc_getConeTwistAngle(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4053,7 +4097,7 @@ double rc_getConstraintTwistAngle(int constraint_id)
|
||||
|
||||
|
||||
//btConeTwistConstraint::getTwistLimitSign()
|
||||
double rc_getConstraintTwistLimitSign(int constraint_id)
|
||||
double rc_getConeTwistLimitSign(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4068,7 +4112,7 @@ double rc_getConstraintTwistLimitSign(int constraint_id)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::getTwistSpan()
|
||||
int rc_getConstraintTwistSpan(int constraint_id)
|
||||
int rc_getConeTwistSpan(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4101,7 +4145,7 @@ void rc_setConstraintAngularOnly(int constraint_id, bool flag)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::setDamping()
|
||||
void rc_setConstraintDamping(int constraint_id, double damping)
|
||||
void rc_setConeDamping(int constraint_id, double damping)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4114,7 +4158,7 @@ void rc_setConstraintDamping(int constraint_id, double damping)
|
||||
}
|
||||
|
||||
//btConeTwistConstraint::setFixThresh()
|
||||
void rc_setConstraintFixThresh(int constraint_id, double fixThresh)
|
||||
void rc_setConeFixThresh(int constraint_id, double fixThresh)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4128,7 +4172,7 @@ void rc_setConstraintFixThresh(int constraint_id, double fixThresh)
|
||||
|
||||
|
||||
//btSliderConstraint::getAncorInA()
|
||||
void rc_getConstraintAnchorA(int constraint_id, double* x, double* y, double* z)
|
||||
void rc_getSlideAnchorA(int constraint_id, double* x, double* y, double* z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4148,7 +4192,7 @@ void rc_getConstraintAnchorA(int constraint_id, double* x, double* y, double* z)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getAncorInB()
|
||||
void rc_getConstraintAnchorB(int constraint_id, double* x, double* y, double* z)
|
||||
void rc_getSlideAnchorB(int constraint_id, double* x, double* y, double* z)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4168,7 +4212,7 @@ void rc_getConstraintAnchorB(int constraint_id, double* x, double* y, double* z)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getAngDepth()
|
||||
double rc_getConstraintAngDepth(int constraint_id)
|
||||
double rc_getSlideAngDepth(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4183,7 +4227,7 @@ double rc_getConstraintAngDepth(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getAngularPos()
|
||||
double rc_getConstraintAngularPos(int constraint_id)
|
||||
double rc_getSlideAngularPos(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4198,7 +4242,7 @@ double rc_getConstraintAngularPos(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getDampingDirAng()
|
||||
double rc_getConstraintDampingDirAng(int constraint_id)
|
||||
double rc_getSlideDampingDirAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4213,7 +4257,7 @@ double rc_getConstraintDampingDirAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getDampingDirLin()
|
||||
double rc_getConstraintDampingDirLin(int constraint_id)
|
||||
double rc_getSlideDampingDirLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4228,7 +4272,7 @@ double rc_getConstraintDampingDirLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getDampingLimAng()
|
||||
double rc_getConstraintDampingLimAng(int constraint_id)
|
||||
double rc_getSlideDampingLimAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4243,7 +4287,7 @@ double rc_getConstraintDampingLimAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getDampingLimLin()
|
||||
double rc_getConstraintDampingLimLin(int constraint_id)
|
||||
double rc_getSlideDampingLimLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4258,7 +4302,7 @@ double rc_getConstraintDampingLimLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getDampingOrthoAng()
|
||||
double rc_getConstraintDampingOrthoAng(int constraint_id)
|
||||
double rc_getSlideDampingOrthoAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4273,7 +4317,7 @@ double rc_getConstraintDampingOrthoAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getDampingOrthoLin()
|
||||
double rc_getConstraintDampingOrthoLin(int constraint_id)
|
||||
double rc_getSlideDampingOrthoLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4288,7 +4332,7 @@ double rc_getConstraintDampingOrthoLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getLinearPos()
|
||||
double rc_getConstraintLinearPos(int constraint_id)
|
||||
double rc_getSlideLinearPos(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4303,7 +4347,7 @@ double rc_getConstraintLinearPos(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getLinDepth()
|
||||
double rc_getConstraintLinDepth(int constraint_id)
|
||||
double rc_getSlideLinDepth(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4318,7 +4362,7 @@ double rc_getConstraintLinDepth(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getLowerAngLimit()
|
||||
double rc_getConstraintLowerAngLimit(int constraint_id)
|
||||
double rc_getSlideLowerAngLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4333,7 +4377,7 @@ double rc_getConstraintLowerAngLimit(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getLowerLinLimit()
|
||||
double rc_getConstraintLowerLinLimit(int constraint_id)
|
||||
double rc_getSlideLowerLinLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4348,7 +4392,7 @@ double rc_getConstraintLowerLinLimit(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getRestitutionDirAng()
|
||||
double rc_getConstraintRestitutionDirAng(int constraint_id)
|
||||
double rc_getSlideRestitutionDirAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4363,7 +4407,7 @@ double rc_getConstraintRestitutionDirAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getRestitutionDirLin()
|
||||
double rc_getConstraintRestitutionDirLin(int constraint_id)
|
||||
double rc_getSlideRestitutionDirLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4378,7 +4422,7 @@ double rc_getConstraintRestitutionDirLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getRestitutionLimAng()
|
||||
double rc_getConstraintRestitutionLimAng(int constraint_id)
|
||||
double rc_getSlideRestitutionLimAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4393,7 +4437,7 @@ double rc_getConstraintRestitutionLimAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getRestitutionLimLin()
|
||||
double rc_getConstraintRestitutionLimLin(int constraint_id)
|
||||
double rc_getSlideRestitutionLimLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4408,7 +4452,7 @@ double rc_getConstraintRestitutionLimLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getRestitutionOrthoAng()
|
||||
double rc_getConstraintRestitutionOrthoAng(int constraint_id)
|
||||
double rc_getSlideRestitutionOrthoAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4423,7 +4467,7 @@ double rc_getConstraintRestitutionOrthoAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getRestitutionOrthoLin()
|
||||
double rc_getConstraintRestitutionOrthoLin(int constraint_id)
|
||||
double rc_getSlideRestitutionOrthoLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4438,7 +4482,7 @@ double rc_getConstraintRestitutionOrthoLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSoftnessDirAng()
|
||||
double rc_getConstraintSoftnessDirAng(int constraint_id)
|
||||
double rc_getSlideSoftnessDirAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4453,7 +4497,7 @@ double rc_getConstraintSoftnessDirAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSoftnessDirLin()
|
||||
double rc_getConstraintSoftnessDirLin(int constraint_id)
|
||||
double rc_getSlideSoftnessDirLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4468,7 +4512,7 @@ double rc_getConstraintSoftnessDirLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSoftnessLimAng()
|
||||
double rc_getConstraintSoftnessLimAng(int constraint_id)
|
||||
double rc_getSlideSoftnessLimAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4483,7 +4527,7 @@ double rc_getConstraintSoftnessLimAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSoftnessLimLin()
|
||||
double rc_getConstraintSoftnessLimLin(int constraint_id)
|
||||
double rc_getSlideSoftnessLimLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4498,7 +4542,7 @@ double rc_getConstraintSoftnessLimLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSoftnessOrthoAng()
|
||||
double rc_getConstraintSoftnessOrthoAng(int constraint_id)
|
||||
double rc_getSlideSoftnessOrthoAng(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4513,7 +4557,7 @@ double rc_getConstraintSoftnessOrthoAng(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSoftnessOrthoLin()
|
||||
double rc_getConstraintSoftnessOrthoLin(int constraint_id)
|
||||
double rc_getSlideSoftnessOrthoLin(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4528,7 +4572,7 @@ double rc_getConstraintSoftnessOrthoLin(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSolveAngLimit()
|
||||
bool rc_getConstraintSolveAngLimit(int constraint_id)
|
||||
bool rc_getSlideSolveAngLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4543,7 +4587,7 @@ bool rc_getConstraintSolveAngLimit(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getSolveLinLimit()
|
||||
bool rc_getConstraintSolveLinLimit(int constraint_id)
|
||||
bool rc_getSlideSolveLinLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4558,7 +4602,7 @@ bool rc_getConstraintSolveLinLimit(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getUpperAngLimit()
|
||||
double rc_getConstraintUpperAngLimit(int constraint_id)
|
||||
double rc_getSlideUpperAngLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4573,7 +4617,7 @@ double rc_getConstraintUpperAngLimit(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getUpperLinLimit()
|
||||
double rc_getConstraintUpperLinLimit(int constraint_id)
|
||||
double rc_getSlideUpperLinLimit(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4588,7 +4632,7 @@ double rc_getConstraintUpperLinLimit(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::getUseFrameOffset()
|
||||
bool rc_getConstraintUseFrameOffset(int constraint_id)
|
||||
bool rc_getSlideUseFrameOffset(int constraint_id)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return 0;
|
||||
@@ -4603,7 +4647,7 @@ bool rc_getConstraintUseFrameOffset(int constraint_id)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setDampingDirAng()
|
||||
void rc_setConstraintDampingDirAng(int constraint_id, double n)
|
||||
void rc_setSlideDampingDirAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4616,7 +4660,7 @@ void rc_setConstraintDampingDirAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setDampingDirLin()
|
||||
void rc_setConstraintDampingDirLin(int constraint_id, double n)
|
||||
void rc_setSlideDampingDirLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4629,7 +4673,7 @@ void rc_setConstraintDampingDirLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setDampingLimAng()
|
||||
void rc_setConstraintDampingLimAng(int constraint_id, double n)
|
||||
void rc_setSlideDampingLimAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4642,7 +4686,7 @@ void rc_setConstraintDampingLimAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setDampingLimLin()
|
||||
void rc_setConstraintDampingLimLin(int constraint_id, double n)
|
||||
void rc_setSlideDampingLimLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4655,7 +4699,7 @@ void rc_setConstraintDampingLimLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setDampingOrthoAng()
|
||||
void rc_setConstraintDampingOrthoAng(int constraint_id, double n)
|
||||
void rc_setSlideDampingOrthoAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4668,7 +4712,7 @@ void rc_setConstraintDampingOrthoAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setDampingOrthoLin()
|
||||
void rc_setConstraintDampingOrthoLin(int constraint_id, double n)
|
||||
void rc_setSlideDampingOrthoLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4681,7 +4725,7 @@ void rc_setConstraintDampingOrthoLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setLowerAngLimit()
|
||||
void rc_setConstraintLowerAngLimit(int constraint_id, double n)
|
||||
void rc_setSlideLowerAngLimit(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4694,7 +4738,7 @@ void rc_setConstraintLowerAngLimit(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setLowerLinLimit()
|
||||
void rc_setConstraintLowerLinLimit(int constraint_id, double n)
|
||||
void rc_setSlideLowerLinLimit(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4707,7 +4751,7 @@ void rc_setConstraintLowerLinLimit(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setRestitutionDirAng()
|
||||
void rc_setConstraintRestitutionDirAng(int constraint_id, double n)
|
||||
void rc_setSlideRestitutionDirAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4720,7 +4764,7 @@ void rc_setConstraintRestitutionDirAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setRestitutionDirLin()
|
||||
void rc_setConstraintRestitutionDirLin(int constraint_id, double n)
|
||||
void rc_setSlideRestitutionDirLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4733,7 +4777,7 @@ void rc_setConstraintRestitutionDirLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setRestitutionLimAng()
|
||||
void rc_setConstraintRestitutionLimAng(int constraint_id, double n)
|
||||
void rc_setSlideRestitutionLimAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4746,7 +4790,7 @@ void rc_setConstraintRestitutionLimAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setRestitutionLimLin()
|
||||
void rc_setConstraintRestitutionLimLin(int constraint_id, double n)
|
||||
void rc_setSlideRestitutionLimLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4759,7 +4803,7 @@ void rc_setConstraintRestitutionLimLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setRestitutionOrthoAng()
|
||||
void rc_setConstraintRestitutionOrthoAng(int constraint_id, double n)
|
||||
void rc_setSlideRestitutionOrthoAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4772,7 +4816,7 @@ void rc_setConstraintRestitutionOrthoAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setRestitutionOrthoLin()
|
||||
void rc_setConstraintRestitutionOrthoLin(int constraint_id, double n)
|
||||
void rc_setSlideRestitutionOrthoLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4785,7 +4829,7 @@ void rc_setConstraintRestitutionOrthoLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setSoftnessDirAng()
|
||||
void rc_setConstraintSoftnessDirAng(int constraint_id, double n)
|
||||
void rc_setSlideSoftnessDirAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4798,7 +4842,7 @@ void rc_setConstraintSoftnessDirAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setSoftnessDirLin()
|
||||
void rc_setConstraintSoftnessDirLin(int constraint_id, double n)
|
||||
void rc_setSlideSoftnessDirLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4811,7 +4855,7 @@ void rc_setConstraintSoftnessDirLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setSoftnessLimAng()
|
||||
void rc_setConstraintSoftnessLimAng(int constraint_id, double n)
|
||||
void rc_setSlideSoftnessLimAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4824,7 +4868,7 @@ void rc_setConstraintSoftnessLimAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setSoftnessLimLin()
|
||||
void rc_setConstraintSoftnessLimLin(int constraint_id, double n)
|
||||
void rc_setSlideSoftnessLimLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4837,7 +4881,7 @@ void rc_setConstraintSoftnessLimLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setSoftnessOrthoAng()
|
||||
void rc_setConstraintSoftnessOrthoAng(int constraint_id, double n)
|
||||
void rc_setSlideSoftnessOrthoAng(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4850,7 +4894,7 @@ void rc_setConstraintSoftnessOrthoAng(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setSoftnessOrthoLin()
|
||||
void rc_setConstraintSoftnessOrthoLin(int constraint_id, double n)
|
||||
void rc_setSlideSoftnessOrthoLin(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4863,7 +4907,7 @@ void rc_setConstraintSoftnessOrthoLin(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setUpperAngLimit()
|
||||
void rc_setConstraintUpperAngLimit(int constraint_id, double n)
|
||||
void rc_setSlideUpperAngLimit(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -4876,7 +4920,7 @@ void rc_setConstraintUpperAngLimit(int constraint_id, double n)
|
||||
}
|
||||
|
||||
//btSliderConstraint::setUpperLinLimit()
|
||||
void rc_setConstraintUpperLinLimit(int constraint_id, double n)
|
||||
void rc_setSlideUpperLinLimit(int constraint_id, double n)
|
||||
{
|
||||
if(constraint_id < 0 || constraint_id >= rc_physics3D.constraints.size())
|
||||
return;
|
||||
@@ -5026,6 +5070,20 @@ double rc_getActorAnimationSpeed(int actor)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void rc_setActorFrame(int actor, int frame)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
|
||||
switch(rc_actor[actor].node_type)
|
||||
{
|
||||
case RC_NODE_TYPE_MESH:
|
||||
irr::scene::IAnimatedMeshSceneNode* node = (irr::scene::IAnimatedMeshSceneNode*)rc_actor[actor].mesh_node;
|
||||
node->setCurrentFrame(frame);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//set actor animation speed
|
||||
void rc_setActorAutoCulling(int actor, int cull_type)
|
||||
{
|
||||
@@ -5103,7 +5161,7 @@ bool rc_lightIsCastingShadow(int actor)
|
||||
int rc_getLightType(int actor)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
switch(rc_actor[actor].node_type)
|
||||
{
|
||||
@@ -5112,7 +5170,7 @@ int rc_getLightType(int actor)
|
||||
return (int)node->getLightType();
|
||||
}
|
||||
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
double rc_getLightRadius(int actor)
|
||||
@@ -5156,19 +5214,6 @@ void rc_setLightRadius(int actor, double radius)
|
||||
}
|
||||
}
|
||||
|
||||
void rc_setActorFrame(int actor, int frame)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
|
||||
switch(rc_actor[actor].node_type)
|
||||
{
|
||||
case RC_NODE_TYPE_MESH:
|
||||
irr::scene::IAnimatedMeshSceneNode* node = (irr::scene::IAnimatedMeshSceneNode*)rc_actor[actor].mesh_node;
|
||||
node->setCurrentFrame(frame);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void rc_setLightShadowCast(int actor, bool flag)
|
||||
{
|
||||
@@ -5681,6 +5726,17 @@ void rc_setTerrainPatchLOD(int actor, int patchX, int patchZ, int lod)
|
||||
}
|
||||
}
|
||||
|
||||
int rc_getParticleType(int actor)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return 0;
|
||||
|
||||
if(rc_actor[actor].node_type != RC_NODE_TYPE_PARTICLE)
|
||||
return 0;
|
||||
|
||||
return rc_actor[actor].particle_properties.particle_type;
|
||||
}
|
||||
|
||||
void rc_startParticleEmitter(int actor)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
@@ -5962,7 +6018,7 @@ void rc_setParticleMesh(int actor, int mesh)
|
||||
}
|
||||
}
|
||||
|
||||
void rc_setParticleMinParticlesPerSecond(int actor, Uint32 minParticlesPerSecond)
|
||||
void rc_setMinParticlesPerSecond(int actor, Uint32 minParticlesPerSecond)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
@@ -5978,7 +6034,7 @@ void rc_setParticleMinParticlesPerSecond(int actor, Uint32 minParticlesPerSecond
|
||||
node->getEmitter()->setMinParticlesPerSecond(minParticlesPerSecond);
|
||||
}
|
||||
|
||||
Uint32 rc_getParticleMinParticlesPerSecond(int actor)
|
||||
Uint32 rc_getMinParticlesPerSecond(int actor)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return 0;
|
||||
@@ -5989,7 +6045,7 @@ Uint32 rc_getParticleMinParticlesPerSecond(int actor)
|
||||
return rc_actor[actor].particle_properties.minParticlesPerSecond;
|
||||
}
|
||||
|
||||
void rc_setParticleMaxParticlesPerSecond(int actor, Uint32 maxParticlesPerSecond)
|
||||
void rc_setMaxParticlesPerSecond(int actor, Uint32 maxParticlesPerSecond)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return;
|
||||
@@ -6005,7 +6061,7 @@ void rc_setParticleMaxParticlesPerSecond(int actor, Uint32 maxParticlesPerSecond
|
||||
node->getEmitter()->setMaxParticlesPerSecond(maxParticlesPerSecond);
|
||||
}
|
||||
|
||||
Uint32 rc_getParticleMaxParticlesPerSecond(int actor)
|
||||
Uint32 rc_getMaxParticlesPerSecond(int actor)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return 0;
|
||||
@@ -6531,23 +6587,6 @@ bool rc_particleIsUsingOutlineOnly(int actor)
|
||||
|
||||
|
||||
|
||||
bool rc_getActorTransform(int actor, int t_mat)
|
||||
{
|
||||
if(actor < 0 || actor >= rc_actor.size())
|
||||
return false;
|
||||
|
||||
if(t_mat < 0 || t_mat >= rc_matrix.size())
|
||||
return false;
|
||||
|
||||
if(!rc_matrix[t_mat].active)
|
||||
return false;
|
||||
|
||||
irr::core::matrix4 m = rc_actor[actor].mesh_node->getAbsoluteTransformation();
|
||||
rc_convertFromIrrMatrix(m, t_mat);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void rc_setCameraPosition(double x, double y, double z)
|
||||
{
|
||||
if(!(rc_active_canvas > 0 && rc_active_canvas < rc_canvas.size()))
|
||||
|
||||
@@ -26,12 +26,12 @@ using namespace video;
|
||||
using namespace scene;
|
||||
|
||||
|
||||
#define MAX_JOYSTICKS 8
|
||||
#define MAX_JOYSTICKS 32
|
||||
|
||||
#define MAX_FINGERS 10
|
||||
|
||||
#define MAX_ACCELS 20
|
||||
#define MAX_GYROS 20
|
||||
#define MAX_ACCELS 32
|
||||
#define MAX_GYROS 32
|
||||
|
||||
SDL_Joystick * rc_joystick[MAX_JOYSTICKS];
|
||||
int rc_joy_axis[MAX_JOYSTICKS][100];
|
||||
@@ -274,17 +274,24 @@ rc_physicsWorld3D_obj rc_physics3D;
|
||||
//Canvases
|
||||
struct rc_physicsWorld2D_obj
|
||||
{
|
||||
bool enabled = false;
|
||||
b2World* world;
|
||||
float timeStep = 1/20.0; //the length of time passed to simulate (seconds)
|
||||
int velocityIterations = 8; //how strongly to correct velocity
|
||||
int positionIterations = 3; //how strongly to correct position
|
||||
};
|
||||
|
||||
#define RC_CANVAS_TYPE_2D 0
|
||||
#define RC_CANVAS_TYPE_3D 1
|
||||
#define RC_CANVAS_TYPE_SPRITE 2
|
||||
|
||||
struct rc_canvas_obj
|
||||
{
|
||||
irr::video::ITexture* texture;
|
||||
|
||||
irr::video::ITexture* sprite_layer;
|
||||
//irr::video::ITexture* sprite_layer;
|
||||
|
||||
int type;
|
||||
|
||||
irr::core::dimension2d<u32> dimension;
|
||||
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
#ifndef RC_TEST_H_INCLUDED
|
||||
#define RC_TEST_H_INCLUDED
|
||||
|
||||
void rc_tst(double* z)
|
||||
void rc_tst()
|
||||
{
|
||||
std::cout << "this is a test" << std::endl;
|
||||
*z = 37;
|
||||
|
||||
std::cout << "the end" << std::endl;
|
||||
}
|
||||
|
||||
#endif // RC_TEST_H_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user