Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnimation ¶
func ExtractAnimationJson ¶
Types ¶
type QuaternionCurve ¶
type QuaternionCurve struct {
Keyframes []QuaternionKeyframe
Duration float32
HermiteFrames [4]QuaternionKeyframe
CurrentIndex int
}
func (*QuaternionCurve) Sample ¶
func (c *QuaternionCurve) Sample(framerate int) []QuaternionKeyframe
Samples the curve into duration * framerate keyframes, spaced evenly along the curve ref: https://www.cubic.org/docs/hermite.htm
func (*QuaternionCurve) ShiftFrame ¶
func (c *QuaternionCurve) ShiftFrame()
type QuaternionKeyframe ¶
type VectorCurve ¶
type VectorCurve struct {
Keyframes []VectorKeyframe
Duration float32
HermiteFrames [4]VectorKeyframe
CurrentIndex int
}
func (*VectorCurve) Sample ¶
func (c *VectorCurve) Sample(framerate int) []VectorKeyframe
Samples the curve into duration * framerate keyframes, spaced evenly along the curve ref: https://www.cubic.org/docs/hermite.htm
func (*VectorCurve) ShiftFrame ¶
func (c *VectorCurve) ShiftFrame()
type VectorKeyframe ¶
Click to show internal directories.
Click to hide internal directories.