-
Notifications
You must be signed in to change notification settings - Fork 0
/
Angular Mass
80 lines (46 loc) · 944 Bytes
/
Angular Mass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// Angular Mass.swift
// Physics Breaker
//
// Created by Charlie Bushman on 2/15/16.
// Copyright © 2016 imaginary inc. All rights reserved.
//
import Foundation
import UIKit
import SpriteKit
class AngularMass {
private var mass: Double
private var acc: Double
private var vel: Double
private var elast: Bool
init(){
mass = 0
acc = 0
vel = 0
elast = true
}
func getMass() ->Double{
return mass
}
func setMass(massX: Double){
mass = massX
}
func getAcc() ->Double{
return acc
}
func setAcc(accX: Double){
acc = accX
}
func getVel() ->Double{
return vel
}
func setVel(velX: Double){
vel = velX
}
func getElast() ->Bool{
return elast
}
func setElast(elastX: Bool){
elast = elastX
}
}