Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void move() {
- super.move();
- deltaV = -m_gravity * m_time;
- m_Vy += deltaV;
- println(deltaV);
- m_y -= m_Vy*m_time;
- if (m_y > m_groundPos) {
- m_y = m_groundPos;
- m_Vy= random(50, 80);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement