Ignore:
Timestamp:
Jun 5, 2012, 8:15:59 PM (11 years ago)
Author:
sam
Message:

orbital: some tuning here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/snake.h

    r1434 r1441  
    7979        WorldEntity::TickGame(seconds);
    8080
    81         m_steer += 2.f * seconds;
     81        m_steer += 4.f * seconds;
    8282
    8383        /* Destruction test */
    8484        if (!m_stick)
    8585            m_stick = Input::TrackStick();
    86         bool fire = m_stick && m_stick->GetButtonCount() >= 4
     86        bool fire = m_stick && m_stick->GetButtonCount() >= 12
    8787                            && m_stick->GetButton(12);
    8888        fire = fire || Input::GetButtonState(305 /* Right Ctrl */);
     
    9494        }
    9595
    96         float test = sinf(m_steer) * 100.f + 30.f;
     96        float test = sinf(m_steer) * 200.f + 60.f;
    9797        m_rotation *= quat::rotate(seconds * test, vec3(0, 1, 0));
    9898
    99         m_velocity = 60.f * m_rotation.transform(vec3(0, 0, 1));
     99        m_velocity = 120.f * m_rotation.transform(vec3(0, 0, 1));
    100100        vec3 deltapos = seconds * m_velocity;
    101101        m_position += deltapos;
     
    129129            {
    130130                new_delta /= new_distance;
    131                 new_distance = std::max(12.f, new_distance - seconds * 80.f);
     131                new_distance = std::max(12.f, new_distance - seconds * 160.f);
    132132                new_delta *= new_distance;
    133133            }
Note: See TracChangeset for help on using the changeset viewer.