mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
reverting some unneeded code changes
This commit is contained in:
parent
6f1bb6abe2
commit
ff6217069b
3 changed files with 3 additions and 3 deletions
|
@ -319,7 +319,7 @@ static const int THROTTLED_SIM_FRAME_PERIOD_MS = MSECS_PER_SECOND / THROTTLED_SI
|
|||
|
||||
static const uint32_t INVALID_FRAME = UINT32_MAX;
|
||||
|
||||
static const float PHYSICS_READY_RANGE = 1.0f; // how far from avatar to check for entities that aren't ready for simulation
|
||||
static const float PHYSICS_READY_RANGE = 3.0f; // how far from avatar to check for entities that aren't ready for simulation
|
||||
|
||||
static const QString DESKTOP_LOCATION = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
||||
|
||||
|
|
|
@ -531,7 +531,7 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
|||
}
|
||||
|
||||
if (!_body->isStaticOrKinematicObject()) {
|
||||
const float DYNAMIC_LINEAR_VELOCITY_THRESHOLD = 0.02f; // 5 cm/sec
|
||||
const float DYNAMIC_LINEAR_VELOCITY_THRESHOLD = 0.05f; // 5 cm/sec
|
||||
const float DYNAMIC_ANGULAR_VELOCITY_THRESHOLD = 0.087266f; // ~5 deg/sec
|
||||
|
||||
bool movingSlowlyLinear =
|
||||
|
|
|
@ -441,7 +441,7 @@ const CollisionEvents& PhysicsEngine::getCollisionEvents() {
|
|||
while (contactItr != _contactMap.end()) {
|
||||
ContactInfo& contact = contactItr->second;
|
||||
ContactEventType type = contact.computeType(_numContactFrames);
|
||||
const btScalar SIGNIFICANT_DEPTH = -0.008f; // penetrations have negative distance
|
||||
const btScalar SIGNIFICANT_DEPTH = -0.002f; // penetrations have negative distance
|
||||
if (type != CONTACT_EVENT_TYPE_CONTINUE ||
|
||||
(contact.distance < SIGNIFICANT_DEPTH &&
|
||||
contact.readyForContinue(_numContactFrames))) {
|
||||
|
|
Loading…
Reference in a new issue