Updated docs and added constants to tracker

This commit is contained in:
n00b87
2026-02-26 15:33:51 -06:00
parent aa7667c838
commit 9dbb4b6b5f
2332 changed files with 6219 additions and 2761 deletions

View File

@@ -779,6 +779,7 @@ int rc_createVehicleActor(int chassis_actor)
rc_actor[actor_id].parent_id = -1;
rc_actor[actor_id].isWheel = false;
rc_actor[actor_id].vehicle_properties.pitch_control = 0;
rc_vehicle_actors.push_back(actor_id);
@@ -3890,6 +3891,22 @@ void rc_setVehiclePitchControl( int actor, double pitch )
return;
rc_actor[actor].vehicle_properties.vehicle->setPitchControl(pitch);
rc_actor[actor].vehicle_properties.pitch_control = pitch;
}
double rc_getVehiclePitchControl( int actor )
{
if(actor < 0 || actor >= rc_actor.size())
return 0;
if(!rc_actor[actor].mesh_node)
return 0;
if(rc_actor[actor].node_type != RC_NODE_TYPE_VEHICLE)
return 0;
return rc_actor[actor].vehicle_properties.pitch_control;
}

View File

@@ -3627,30 +3627,28 @@
#define SETWHEELROTATION_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define SETWHEELROTATION_WHEEL num_var[1].nref[0].value[ num_var[1].byref_offset ]
#define SETWHEELROTATION_ROT num_var[2].nref[0].value[ num_var[2].byref_offset ]
#define FN_SetWheelRotationDelta 1127
#define SETWHEELROTATIONDELTA_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define SETWHEELROTATIONDELTA_WHEEL num_var[1].nref[0].value[ num_var[1].byref_offset ]
#define SETWHEELROTATIONDELTA_ROT_DELTA num_var[2].nref[0].value[ num_var[2].byref_offset ]
#define FN_SetWheelRollInfluence 1128
#define FN_SetWheelRollInfluence 1127
#define SETWHEELROLLINFLUENCE_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define SETWHEELROLLINFLUENCE_WHEEL num_var[1].nref[0].value[ num_var[1].byref_offset ]
#define SETWHEELROLLINFLUENCE_ROLL_INFLUENCE num_var[2].nref[0].value[ num_var[2].byref_offset ]
#define FN_SetWheelInverseContactSuspension 1129
#define FN_SetWheelInverseContactSuspension 1128
#define SETWHEELINVERSECONTACTSUSPENSION_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define SETWHEELINVERSECONTACTSUSPENSION_WHEEL num_var[1].nref[0].value[ num_var[1].byref_offset ]
#define SETWHEELINVERSECONTACTSUSPENSION_C_VALUE num_var[2].nref[0].value[ num_var[2].byref_offset ]
#define FN_SetWheelSuspensionVelocity 1130
#define FN_SetWheelSuspensionVelocity 1129
#define SETWHEELSUSPENSIONVELOCITY_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define SETWHEELSUSPENSIONVELOCITY_WHEEL num_var[1].nref[0].value[ num_var[1].byref_offset ]
#define SETWHEELSUSPENSIONVELOCITY_VELOCITY num_var[2].nref[0].value[ num_var[2].byref_offset ]
#define FN_SetWheelActorOffsetTransform 1131
#define FN_SetWheelActorOffsetTransform 1130
#define SETWHEELACTOROFFSETTRANSFORM_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define SETWHEELACTOROFFSETTRANSFORM_WHEEL num_var[1].nref[0].value[ num_var[1].byref_offset ]
#define SETWHEELACTOROFFSETTRANSFORM_T_MATRIX num_var[2].nref[0].value[ num_var[2].byref_offset ]
#define FN_GetWheelActorOffsetTransform 1132
#define FN_GetWheelActorOffsetTransform 1131
#define GETWHEELACTOROFFSETTRANSFORM_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define GETWHEELACTOROFFSETTRANSFORM_WHEEL num_var[1].nref[0].value[ num_var[1].byref_offset ]
#define GETWHEELACTOROFFSETTRANSFORM_T_MATRIX num_var[2].nref[0].value[ num_var[2].byref_offset ]
#define FN_GetVehiclePitchControl 1132
#define GETVEHICLEPITCHCONTROL_ACTOR num_var[0].nref[0].value[ num_var[0].byref_offset ]
#define FN_createMaterial 1133
#define FN_deleteMaterial 1134
#define DELETEMATERIAL_MATERIAL_ID num_var[0].nref[0].value[ num_var[0].byref_offset ]

View File

@@ -3407,9 +3407,6 @@ case FN_SetWheelFrictionSlip: //Sub Procedure
case FN_SetWheelRotation: //Sub Procedure
rc_setWheelRotation( SETWHEELROTATION_ACTOR, SETWHEELROTATION_WHEEL, SETWHEELROTATION_ROT );
break;
case FN_SetWheelRotationDelta: //Sub Procedure
rc_setWheelRotationDelta( SETWHEELROTATIONDELTA_ACTOR, SETWHEELROTATIONDELTA_WHEEL, SETWHEELROTATIONDELTA_ROT_DELTA );
break;
case FN_SetWheelRollInfluence: //Sub Procedure
rc_setWheelRollInfluence( SETWHEELROLLINFLUENCE_ACTOR, SETWHEELROLLINFLUENCE_WHEEL, SETWHEELROLLINFLUENCE_ROLL_INFLUENCE );
break;
@@ -3425,6 +3422,9 @@ case FN_SetWheelActorOffsetTransform: //Sub Procedure
case FN_GetWheelActorOffsetTransform: //Sub Procedure
rc_getWheelActorOffsetTransform( GETWHEELACTOROFFSETTRANSFORM_ACTOR, GETWHEELACTOROFFSETTRANSFORM_WHEEL, GETWHEELACTOROFFSETTRANSFORM_T_MATRIX );
break;
case FN_GetVehiclePitchControl: //Number Function
rc_push_num(rc_getVehiclePitchControl( GETVEHICLEPITCHCONTROL_ACTOR ));
break;
case FN_createMaterial: //Number Function
rc_push_num(rc_createMaterial( ));
break;

View File

@@ -640,6 +640,7 @@ struct rc_vehicle_properties
int chassis_actor_id;
IRaycastVehicle* vehicle;
irr::core::array<rc_vehicle_wheel> wheels;
double pitch_control; //bullet has know way of getting this value so I am keeping track of it manually
};
struct rc_projector_properties

View File

@@ -2,7 +2,7 @@
#define RC_OS_DEFINES_H_INCLUDED
//USED FOR TESTING ONLY
#define RC_TESTING
//#define RC_TESTING
//I am checking Android first since I think it also defines __linux__

View File

@@ -35,10 +35,10 @@
<irrtheora.h>
"rc_func130_cases.h"
1772055421 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_os_defines.h
1772097843 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_os_defines.h
<TargetConditionals.h>
1771822804 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_defines.h
1772139384 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_defines.h
1764140917 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_stdlib.h
"rc_os_defines.h"
@@ -1276,7 +1276,7 @@
"rc_post_fx.h"
<irrtheora.h>
1772060471 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_gfx_core.h
1772097742 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_gfx_core.h
"SDL.h"
"btBulletDynamicsCommon.h"
"BulletSoftBody/btSoftRigidDynamicsWorld.h"
@@ -2282,7 +2282,7 @@
"rc_gfx_core.h"
<irrtheora.h>
1771822804 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_func130_cases.h
1772139384 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_func130_cases.h
1760243468 source:/home/n00b/Projects/irrBullet/src/irrBullet.cpp
"irrBullet.h"
@@ -2534,7 +2534,7 @@
1758412944 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_physics3D_base.h
"rc_gfx_core.h"
1771808408 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_base_actor.h
1772097873 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_base_actor.h
"ProjectiveTextures.h"
"rc_matrix.h"