-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Vehicles #641
Document Vehicles #641
Conversation
src/code_80005FD0.c
Outdated
position[0] = var_f2; | ||
position[1] = var_f12; | ||
position[2] = var_f14; | ||
return get_angle_path(sp50, position); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sp50 good name might be pos
or oldPos
get_angle_path if it returns the angle between sp50 and position. get_angle
get_angle_path is essentially get_angle_between_two_vectors_dup
.
Perhaps get_angle_between_two_vectors_vehicles
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah get_angle_path is a kind of duplicate of get_angle_between_two_vectors_dup
smokePos[1] = (f32) ((f64) gTrainList[i].locomotive.position[1] + 65.0); | ||
smokePos[2] = (f32) ((f64) gTrainList[i].locomotive.position[2] + 25.0); | ||
move_to_point_direction(smokePos, gTrainList[i].locomotive.position, orientationYUpdate); | ||
spawn_train_smoke(i, smokePos, 1.1f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make a define for 1.1f it's the smoke heighth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the velocity
src/code_80005FD0.c
Outdated
D_80163318[payerId] = trackSegment; | ||
D_80162FCE = func_8000C0BC(posX, posY, posZ, trackSegment, &pathIndex); | ||
D_80162FCE = find_closest_waypoint_track_segment(posX, posY, posZ, trackSegment, &pathIndex); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I like the _track_segment part.
Should use trackSection instead of trackSegment I think.
src/code_80005FD0.c
Outdated
@@ -4890,15 +4894,15 @@ void func_80013854(Player *player) { | |||
} | |||
} | |||
|
|||
void func_800139E4(f32 arg0, f32 arg1, s32 arg2, s32 arg3, VehicleStuff *vehicle, TrackWaypoint *waypointList) { | |||
void initialize_toad_turnpike_vehicle(f32 speedA, f32 speedB, s32 numVehicles, s32 arg3, VehicleStuff *vehicleList, TrackWaypoint *waypointList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toads_turnpike
No description provided.