Reset resets the animation from the beginning
()
| 46 | |
| 47 | // Reset resets the animation from the beginning |
| 48 | func (at *AnimationTarget) Reset() { |
| 49 | |
| 50 | at.last = at.start |
| 51 | at.target.GetNode().SetMatrix(&at.matrix) |
| 52 | } |
| 53 | |
| 54 | // SetLoop sets the state of the animation loop flag |
| 55 | func (at *AnimationTarget) SetLoop(loop bool) { |