Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func update(_ currentTime: TimeInterval) {
- let valor: CGFloat = abejita.physicsBody?.velocity.dy * abejita.physicsBody?.velocity.dy < 0 ? 0.003 : 0.001
- abejita.zRotation = self.rotacion(min: -1, max: 1, valor: valor)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement