rename PSVEC to VEC
This is the correct name for the Vec functions for Dolphin. This also applies to PSMTX...
This commit is contained in:
parent
64413586b9
commit
afa9c0a4b5
82 changed files with 968 additions and 968 deletions
|
|
@ -1287,15 +1287,15 @@ void fn_1_5880(omObjData *object)
|
|||
+ (dir.x * (offset.x * offset.z * (1.0 - cos((M_PI * z_rot) / 180.0)) - offset.y * sin((M_PI * z_rot) / 180.0))
|
||||
+ dir.y * (offset.y * offset.z * (1.0 - cos((M_PI * z_rot) / 180.0)) + offset.x * sin((M_PI * z_rot) / 180.0)));
|
||||
|
||||
PSVECCrossProduct(&dir, &offset, &offset);
|
||||
PSVECNormalize(&offset, &offset);
|
||||
VECCrossProduct(&dir, &offset, &offset);
|
||||
VECNormalize(&offset, &offset);
|
||||
stick_pos = (HuPadSubStkX[0] & 0xF8);
|
||||
if (stick_pos != 0) {
|
||||
Center.x += 0.05f * (offset.x * stick_pos);
|
||||
Center.y += 0.05f * (offset.y * stick_pos);
|
||||
Center.z += 0.05f * (offset.z * stick_pos);
|
||||
}
|
||||
PSVECNormalize(&y_offset, &offset);
|
||||
VECNormalize(&y_offset, &offset);
|
||||
stick_pos = -(HuPadSubStkY[0] & 0xF8);
|
||||
if (stick_pos != 0) {
|
||||
Center.x += 0.05f * (offset.x * stick_pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue