animation

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	// contains filtered or unexported fields
}

func NewFrame

func NewFrame(time float64, val vector3.Float64) Frame

func (Frame) Time

func (s Frame) Time() float64

func (Frame) Val

func (s Frame) Val() vector3.Float64

type Joint

type Joint struct {
	// contains filtered or unexported fields
}

func NewJoint

func NewJoint(name string, worldPosition, up, forward vector3.Float64, children ...Joint) Joint

func (Joint) Children

func (j Joint) Children() []Joint

func (Joint) InverseBindMatrix

func (j Joint) InverseBindMatrix() mat.Matrix4x4

func (Joint) Matrix

func (j Joint) Matrix() mat.Matrix4x4

func (Joint) WorldPosition

func (j Joint) WorldPosition() vector3.Float64

type Sequence

type Sequence struct {
	// contains filtered or unexported fields
}

func NewSequence

func NewSequence(joint string, frames []Frame) Sequence

func (Sequence) Frames

func (s Sequence) Frames() []Frame

func (Sequence) Joint

func (s Sequence) Joint() string

type Skeleton

type Skeleton struct {
	// contains filtered or unexported fields
}

func NewSkeleton

func NewSkeleton(root Joint) Skeleton

func (Skeleton) Children

func (s Skeleton) Children(index int) []int

func (Skeleton) ClosestJoints

func (s Skeleton) ClosestJoints(point vector3.Float64)

func (Skeleton) InverseBindMatrix

func (s Skeleton) InverseBindMatrix(index int) mat.Matrix4x4

func (Skeleton) JointCount

func (s Skeleton) JointCount() int

func (Skeleton) Lookup

func (s Skeleton) Lookup(name string) int

func (Skeleton) RelativeMatrix

func (s Skeleton) RelativeMatrix(index int) mat.Matrix4x4

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL