| Conditions | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | class cModel(object): |
||
| 26 | def translate(self, translation): |
||
| 27 | # This function is best called before interesction is used |
||
| 28 | # For now it takes in a vector of any size but it will only use X and Y |
||
| 29 | # If there is not translation then it doesn't make any sense to even update the matrix |
||
| 30 | if (translation.vector[0] != 0.0 and translation.vector[1] != 0.0): |
||
| 31 | self.object.translate(translation.vector[0], translation.vector[1]) |
||
| 32 | self.object.update() |
||
| 33 | |||
| 34 | self.cmodel = self.object.getCollisionData() |
||
| 35 | |||
| 47 |