MCPcopy
hub / github.com/g3n/engine / Reset

Method Reset

loader/collada/animation.go:48–52  ·  view source on GitHub ↗

Reset resets the animation from the beginning

()

Source from the content-addressed store, hash-verified

46
47// Reset resets the animation from the beginning
48func (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
55func (at *AnimationTarget) SetLoop(loop bool) {

Callers 1

UpdateMethod · 0.95

Calls 2

SetMatrixMethod · 0.80
GetNodeMethod · 0.65

Tested by

no test coverage detected