Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
JStudio.J3D.Animation.BCK Class Reference

Represents a bone animation for the J3D model format. Bones are applied by index order, so there is no information stored about which animation goes to which bone. More...

+ Inheritance diagram for JStudio.J3D.Animation.BCK:
+ Collaboration diagram for JStudio.J3D.Animation.BCK:

Classes

class  JointAnim
 

Public Member Functions

 BCK (string name)
 
void LoadFromStream (EndianBinaryReader reader, BMD model, bool enqueue)
 
void ApplyAnimationToPose (List< SkeletonJoint > pose, Dictionary< string, GameObject > jointGameObjects)
 
void ApplyPoseForSkinnedMeshRenderer (List< SkeletonJoint > pose, Transform[] bones)
 
- Public Member Functions inherited from JStudio.J3D.Animation.BaseJ3DAnimation
bool IsPlaying ()
 
float TimeSinceStartedPlaying ()
 
void SetTimeSinceStartedPlaying (float t)
 
 BaseJ3DAnimation (string name)
 
virtual bool Tick (float deltaTime)
 
virtual void Start ()
 
virtual void Stop ()
 
virtual void Pause ()
 
virtual void Resume ()
 
float GetAnimValue (List< Key > keys, float frameTime)
 

Public Attributes

List< JointAnimm_animationData
 
BMD model
 
bool IsLoaded
 
- Public Attributes inherited from JStudio.J3D.Animation.BaseJ3DAnimation
float m_timeSinceStartedPlaying
 
int TickCount
 
bool OneTimeDone
 

Properties

int BoneCount [get]
 
- Properties inherited from JStudio.J3D.Animation.BaseJ3DAnimation
string Name [get, protected set]
 
string Magic [get, protected set]
 
string AnimType [get, protected set]
 
LoopType LoopMode [get, set]
 
short AnimLengthInFrames [get, protected set]
 
string AnimLengthInSeconds [get]
 

Private Member Functions

void LoadTagDataFromStream (EndianBinaryReader reader, int tagCount)
 
void LoadANK1FromStream (EndianBinaryReader reader, long tagStart)
 

Private Attributes

string _animName
 
bool loopCounter = false
 

Additional Inherited Members

- Static Public Attributes inherited from JStudio.J3D.Animation.BaseJ3DAnimation
static float kAnimFramerate = 30f
 
- Protected Member Functions inherited from JStudio.J3D.Animation.BaseJ3DAnimation
virtual float CubicInterpolation (Key key1, Key key2, float t)
 
virtual float HermiteInterpolation (Key key1, Key key2, float t)
 
virtual float LinearInterpolation (Key key1, Key key2, float t)
 
void ConvertRotation (List< Key > rots, float scale)
 
AnimIndex ReadAnimIndex (EndianBinaryReader stream)
 
AnimComponent ReadAnimComponent (EndianBinaryReader stream)
 
AnimatedJoint ReadAnimJoint (EndianBinaryReader stream)
 
List< KeyReadComp (float[] src, AnimIndex index)
 
- Protected Attributes inherited from JStudio.J3D.Animation.BaseJ3DAnimation
bool m_isPlaying
 
OpenTK.Matrix4 m_hermiteMatrix = new OpenTK.Matrix4(2, -2, 1, 1, -3, 3, -2, -1, 0, 0, 1, 0, 1, 0, 0, 0)
 

Detailed Description

Represents a bone animation for the J3D model format. Bones are applied by index order, so there is no information stored about which animation goes to which bone.

Constructor & Destructor Documentation

◆ BCK()

JStudio.J3D.Animation.BCK.BCK ( string name)

Member Function Documentation

◆ ApplyAnimationToPose()

void JStudio.J3D.Animation.BCK.ApplyAnimationToPose ( List< SkeletonJoint > pose,
Dictionary< string, GameObject > jointGameObjects )

◆ ApplyPoseForSkinnedMeshRenderer()

void JStudio.J3D.Animation.BCK.ApplyPoseForSkinnedMeshRenderer ( List< SkeletonJoint > pose,
Transform[] bones )

◆ LoadANK1FromStream()

void JStudio.J3D.Animation.BCK.LoadANK1FromStream ( EndianBinaryReader reader,
long tagStart )
private

◆ LoadFromStream()

void JStudio.J3D.Animation.BCK.LoadFromStream ( EndianBinaryReader reader,
BMD model,
bool enqueue )

◆ LoadTagDataFromStream()

void JStudio.J3D.Animation.BCK.LoadTagDataFromStream ( EndianBinaryReader reader,
int tagCount )
private

Member Data Documentation

◆ _animName

string JStudio.J3D.Animation.BCK._animName
private

◆ IsLoaded

bool JStudio.J3D.Animation.BCK.IsLoaded

◆ loopCounter

bool JStudio.J3D.Animation.BCK.loopCounter = false
private

◆ m_animationData

List<JointAnim> JStudio.J3D.Animation.BCK.m_animationData

◆ model

BMD JStudio.J3D.Animation.BCK.model

Property Documentation

◆ BoneCount

int JStudio.J3D.Animation.BCK.BoneCount
get

The documentation for this class was generated from the following file: