Advertisement
Guest User

Untitled

a guest
Jul 16th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.25 KB | None | 0 0
  1. override func update(_ currentTime: TimeInterval) {
  2.         let valor: CGFloat = abejita.physicsBody?.velocity.dy * abejita.physicsBody?.velocity.dy < 0 ? 0.003 : 0.001
  3.         abejita.zRotationself.rotacion(min: -1, max: 1, valor: valor)
  4.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement