Added SetActorShapeEx()

This commit is contained in:
n00b87
2025-10-12 00:21:34 -05:00
parent 3fa3dbb4e3
commit 8f7fd7d453
11 changed files with 729 additions and 667 deletions

View File

@@ -17,7 +17,7 @@ void setSolidProperties(int actor)
}
}
void rc_setActorCollisionShape(int actor_id, int shape_type, double mass)
void rc_setActorCollisionShape(int actor_id, int shape_type, double mass, double radius=-1)
{
//std::cout << "Start ColShape" << std::endl;
if(rc_actor[actor_id].physics.rigid_body)

File diff suppressed because it is too large Load Diff

View File

@@ -2423,6 +2423,9 @@ case FN_CastRay3D_All: //Number Function
case FN_GetRayHit3D: //Sub Procedure
rc_getRayHit3D( GETRAYHIT3D_INDEX, &GETRAYHIT3D_ACTOR_ID, &GETRAYHIT3D_X, &GETRAYHIT3D_Y, &GETRAYHIT3D_Z, &GETRAYHIT3D_NORMAL_X, &GETRAYHIT3D_NORMAL_Y, &GETRAYHIT3D_NORMAL_Z );
break;
case FN_SetActorShapeEx: //Sub Procedure
rc_setActorCollisionShape( SETACTORSHAPEEX_ACTOR, SETACTORSHAPEEX_SHAPE_TYPE, SETACTORSHAPEEX_MASS, SETACTORSHAPEEX_RADIUS );
break;
case FN_createPointConstraint: //Number Function
rc_push_num(rc_createPointConstraint( CREATEPOINTCONSTRAINT_ACTORA, CREATEPOINTCONSTRAINT_PXA, CREATEPOINTCONSTRAINT_PYA, CREATEPOINTCONSTRAINT_PZA ));
break;