animation

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WeightMeshWithHeatDiffusion added in v0.5.0

func WeightMeshWithHeatDiffusion(mesh modeling.Mesh, skeleton Skeleton, voxilization []vector3.Float64, voxelSize float64, iterations int) modeling.Mesh

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 HeatSource added in v0.5.0

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

type Joint

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

func NewJoint

func NewJoint(name string, weight float64, 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, pointToConsider int) []int

func (Skeleton) Heat added in v0.5.0

func (s Skeleton) Heat(index int) 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

func (Skeleton) RelativePosition added in v0.5.0

func (s Skeleton) RelativePosition(index int) vector3.Float64

func (Skeleton) WorldPosition added in v0.5.0

func (s Skeleton) WorldPosition(index int) vector3.Float64

Jump to

Keyboard shortcuts

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