animation

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 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 Axis added in v0.6.0

type Axis int
const (
	XAxis Axis = iota
	YAxis
	ZAxis
)

type Frame

type Frame[T any] struct {
	// contains filtered or unexported fields
}

func NewFrame

func NewFrame[T any](time float64, val T) Frame[T]

func (Frame[T]) Time

func (s Frame[T]) Time() float64

func (Frame[T]) Val

func (s Frame[T]) Val() T

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 MirrorJoint added in v0.6.0

func MirrorJoint(joint Joint, name string, axis Axis) Joint

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[vector3.Float64]) Sequence

func (Sequence) Frames

func (s Sequence) Frames() []Frame[vector3.Float64]

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