mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-23 02:42:38 +01:00
- apply cone rotation for trailblazer & gates
This commit is contained in:
parent
1943b49d29
commit
e8056ba84f
@ -540,7 +540,7 @@ int CarConeCollision(VECTOR *pPos, int car)
|
||||
cd[0].x.vz = pPos->vz;
|
||||
cd[0].length[0] = 0x28;
|
||||
cd[0].length[1] = 0x28;
|
||||
cd[0].theta = 0;
|
||||
cd[0].theta = pPos->pad;
|
||||
|
||||
if (car_data[car].controlType == CONTROL_TYPE_NONE)
|
||||
return 0;
|
||||
@ -979,6 +979,7 @@ void GetConePos(int cone, VECTOR *pos, int side)
|
||||
pos->vx = pTVar2->x;
|
||||
pos->vy = pTVar2->y;
|
||||
pos->vz = pTVar2->z;
|
||||
pos->pad = pTVar2->rot; // [A] store cone rotation
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1005,6 +1006,7 @@ void GetConePos(int cone, VECTOR *pos, int side)
|
||||
}
|
||||
|
||||
pos->vz = pTVar2->z + iVar4;
|
||||
pos->pad = pTVar2->rot;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user