Completed
Push — master ( be0bb5...16e7a2 )
by Matthew
01:20
created

CollisionData.__init__()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 4
rs 10
1
class CollisionData(object):
2
	def __init__(self, state, direction, depthPenetration = None):
3
		self.mState = state
4
		self.mDirection = direction
5
		self.mDepthPenetration = depthPenetration
6
7
	def getState(self):
8
		return self.mState
9
10
	def getDistance(self):
11
		return self.mDirection.magnitude()
12
13
	def getDirection(self):
14
		return self.mDirection.normalize()
15
16
	def getDepthPenetration(self):
17
		return self.mDepthPenetration