Changeset 1441 for trunk/orbital/snake.h
- Timestamp:
- Jun 5, 2012, 8:15:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/orbital/snake.h
r1434 r1441 79 79 WorldEntity::TickGame(seconds); 80 80 81 m_steer += 2.f * seconds;81 m_steer += 4.f * seconds; 82 82 83 83 /* Destruction test */ 84 84 if (!m_stick) 85 85 m_stick = Input::TrackStick(); 86 bool fire = m_stick && m_stick->GetButtonCount() >= 486 bool fire = m_stick && m_stick->GetButtonCount() >= 12 87 87 && m_stick->GetButton(12); 88 88 fire = fire || Input::GetButtonState(305 /* Right Ctrl */); … … 94 94 } 95 95 96 float test = sinf(m_steer) * 100.f + 30.f;96 float test = sinf(m_steer) * 200.f + 60.f; 97 97 m_rotation *= quat::rotate(seconds * test, vec3(0, 1, 0)); 98 98 99 m_velocity = 60.f * m_rotation.transform(vec3(0, 0, 1));99 m_velocity = 120.f * m_rotation.transform(vec3(0, 0, 1)); 100 100 vec3 deltapos = seconds * m_velocity; 101 101 m_position += deltapos; … … 129 129 { 130 130 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); 132 132 new_delta *= new_distance; 133 133 }
Note: See TracChangeset
for help on using the changeset viewer.