mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Fix plAvatar.
This commit is contained in:
@ -330,8 +330,8 @@ void plAvBrainCritter::SightCone(float coneRad)
|
||||
fSightConeAngle = coneRad;
|
||||
|
||||
// calculate the minimum dot product for the cone of sight (angle/2 vector dotted with straight ahead)
|
||||
hsVector3 straightVector(1, 0, 0), viewVector(1, 0, 0);
|
||||
hsQuat rotation(fSightConeAngle/2, &hsVector3(0, 1, 0));
|
||||
hsVector3 straightVector(1, 0, 0), viewVector(1, 0, 0), up(0, 1, 0);
|
||||
hsQuat rotation(fSightConeAngle/2, &up);
|
||||
viewVector = hsVector3(rotation.Rotate(&viewVector));
|
||||
viewVector.Normalize();
|
||||
fSightConeDotMin = straightVector * viewVector;
|
||||
|
Reference in New Issue
Block a user