various small tweaks

This commit is contained in:
veclavtalica
2025-03-13 03:08:35 +03:00
parent 2975aa2dfb
commit 73db3e57dc
2 changed files with 51 additions and 50 deletions

View File

@ -235,7 +235,7 @@ static void process_vehicle(SceneIngame *scn) {
/* front arms are rotated to be perpendicular to center of turning, */
/* which then are used to dissipate forces, thus providing control */
Vec3 const rear_bar = vec3_sub(vbp[0], vbp[3]);
Vec3 const rear_center = vec3_add(vbp[3], vec3_scale(rear_bar, 0.5));
Vec3 const rear_center = vec3_scale(vec3_add(vbp[0], vbp[3]), 0.5);
Vec3 a, b, r;
if (i == 1) {
a = vec3_sub(vbp[3], vbp[2]);