mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 13:39:42 +00:00
Increase the base angular velocity to 900°/sec (#5192)
This commit is contained in:
parent
09b1aca9bd
commit
1a15ad216d
2 changed files with 5 additions and 2 deletions
|
@ -23,6 +23,7 @@
|
|||
Bug #5088: Sky abruptly changes direction during certain weather transitions
|
||||
Bug #5100: Persuasion doesn't always clamp the resulting disposition
|
||||
Bug #5120: Scripted object spawning updates physics system
|
||||
Bug #5192: Actor turn rate is too slow
|
||||
Bug #5207: Loose summons can be present in scene
|
||||
Bug #5377: console does not appear after using menutest in inventory
|
||||
Bug #5379: Wandering NPCs falling through cantons
|
||||
|
|
|
@ -16,9 +16,11 @@ namespace MWMechanics
|
|||
// Max rotating speed, radian/sec
|
||||
inline float getAngularVelocity(const float actorSpeed)
|
||||
{
|
||||
const float baseAngluarVelocity = 10;
|
||||
constexpr float degreesPerFrame = 15.f;
|
||||
constexpr int framesPerSecond = 60;
|
||||
const float baseAngularVelocity = osg::DegreesToRadians(degreesPerFrame * framesPerSecond);
|
||||
const float baseSpeed = 200;
|
||||
return baseAngluarVelocity * std::max(actorSpeed / baseSpeed, 1.0f);
|
||||
return baseAngularVelocity * std::max(actorSpeed / baseSpeed, 1.0f);
|
||||
}
|
||||
|
||||
/// configure rotation settings for an actor to reach this target angle (eventually)
|
||||
|
|
Loading…
Reference in a new issue