mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
Simplify wall collision and add intro camera pan
- Remove complex ramp/edge filtering that was skipping building walls - Simpler wall detection: any vertical geometry above step height - Add intro camera pan on game start
This commit is contained in:
parent
9828eb2880
commit
961ddb187e
6 changed files with 54 additions and 137 deletions
|
|
@ -183,7 +183,6 @@ public:
|
|||
int sfxVolume = 100;
|
||||
float mouseSensitivity = 0.2f;
|
||||
bool invertMouse = false;
|
||||
bool introSeen = false;
|
||||
};
|
||||
bool getSinglePlayerSettings(SinglePlayerSettings& out) const;
|
||||
void setSinglePlayerSettings(const SinglePlayerSettings& settings);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public:
|
|||
}
|
||||
|
||||
void reset();
|
||||
void startIntroPan(float durationSec = 2.5f, float orbitDegrees = 120.0f);
|
||||
void startIntroPan(float durationSec = 2.8f, float orbitDegrees = 140.0f);
|
||||
bool isIntroActive() const { return introActive; }
|
||||
|
||||
float getMovementSpeed() const { return movementSpeed; }
|
||||
|
|
@ -186,8 +186,12 @@ private:
|
|||
float introTimer = 0.0f;
|
||||
float introDuration = 0.0f;
|
||||
float introStartYaw = 0.0f;
|
||||
float introEndYaw = 0.0f;
|
||||
float introOrbitDegrees = 0.0f;
|
||||
float introPitch = -10.0f;
|
||||
float introStartPitch = -15.0f;
|
||||
float introEndPitch = -5.0f;
|
||||
float introStartDistance = 12.0f;
|
||||
float introEndDistance = 10.0f;
|
||||
};
|
||||
|
||||
} // namespace rendering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue