M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.MBSkeletonExtensions Class Reference

Static Public Member Functions

static Skeleton CreateWithActionSet (ref AnimationSystemData animationSystemData)
 
static float GetSkeletonFaceAnimationTime (Skeleton skeleton)
 
static void SetSkeletonFaceAnimationTime (Skeleton skeleton, float time)
 
static string GetSkeletonFaceAnimationName (Skeleton skeleton)
 
static MatrixFrame GetBoneEntitialFrameAtAnimationProgress (this Skeleton skeleton, sbyte boneIndex, int animationIndex, float progress)
 
static MatrixFrame GetBoneEntitialFrame (this Skeleton skeleton, sbyte boneNumber, bool forceToUpdate=false)
 
static void SetFacialAnimation (this Skeleton skeleton, Agent.FacialAnimChannel channel, string faceAnimation, bool playSound, bool loop)
 
static void SetAgentActionChannel (this Skeleton skeleton, int actionChannelNo, ActionIndexCache actionIndex, float channelParameter=0.0f, float blendPeriodOverride=-0.2f, bool forceFaceMorphRestart=true)
 
static void TickActionChannels (this Skeleton skeleton)
 
static void SetAnimationAtChannel (this Skeleton skeleton, string animationName, int channelNo, float animationSpeedMultiplier=1.0f, float blendInPeriod=-1.0f, float startProgress=0.0f)
 Sets the animation at the specific channel. More...
 
static void SetAnimationAtChannel (this Skeleton skeleton, int animationIndex, int channelNo, float animationSpeedMultiplier=1.0f, float blendInPeriod=-1.0f, float startProgress=0.0f)
 
static ActionIndexCache GetActionAtChannel (this Skeleton skeleton, int channelNo)
 

Member Function Documentation

◆ CreateWithActionSet()

static Skeleton TaleWorlds.MountAndBlade.MBSkeletonExtensions.CreateWithActionSet ( ref AnimationSystemData  animationSystemData)
static

◆ GetSkeletonFaceAnimationTime()

static float TaleWorlds.MountAndBlade.MBSkeletonExtensions.GetSkeletonFaceAnimationTime ( Skeleton  skeleton)
static

◆ SetSkeletonFaceAnimationTime()

static void TaleWorlds.MountAndBlade.MBSkeletonExtensions.SetSkeletonFaceAnimationTime ( Skeleton  skeleton,
float  time 
)
static

◆ GetSkeletonFaceAnimationName()

static string TaleWorlds.MountAndBlade.MBSkeletonExtensions.GetSkeletonFaceAnimationName ( Skeleton  skeleton)
static

◆ GetBoneEntitialFrameAtAnimationProgress()

static MatrixFrame TaleWorlds.MountAndBlade.MBSkeletonExtensions.GetBoneEntitialFrameAtAnimationProgress ( this Skeleton  skeleton,
sbyte  boneIndex,
int  animationIndex,
float  progress 
)
static

◆ GetBoneEntitialFrame()

static MatrixFrame TaleWorlds.MountAndBlade.MBSkeletonExtensions.GetBoneEntitialFrame ( this Skeleton  skeleton,
sbyte  boneNumber,
bool  forceToUpdate = false 
)
static

◆ SetFacialAnimation()

static void TaleWorlds.MountAndBlade.MBSkeletonExtensions.SetFacialAnimation ( this Skeleton  skeleton,
Agent.FacialAnimChannel  channel,
string  faceAnimation,
bool  playSound,
bool  loop 
)
static

◆ SetAgentActionChannel()

static void TaleWorlds.MountAndBlade.MBSkeletonExtensions.SetAgentActionChannel ( this Skeleton  skeleton,
int  actionChannelNo,
ActionIndexCache  actionIndex,
float  channelParameter = 0.0f,
float  blendPeriodOverride = -0.2f,
bool  forceFaceMorphRestart = true 
)
static

◆ TickActionChannels()

static void TaleWorlds.MountAndBlade.MBSkeletonExtensions.TickActionChannels ( this Skeleton  skeleton)
static

◆ SetAnimationAtChannel() [1/2]

static void TaleWorlds.MountAndBlade.MBSkeletonExtensions.SetAnimationAtChannel ( this Skeleton  skeleton,
string  animationName,
int  channelNo,
float  animationSpeedMultiplier = 1.0f,
float  blendInPeriod = -1.0f,
float  startProgress = 0.0f 
)
static
Parameters
skeleton
animationNameName of the animation.
channelNoIndex of the channel.
animationSpeedMultiplierSpeed multiplier of the animation. Default is 1.0f.
blendInPeriodBlend in period override option for the animation. Keep it below 0.0f to use the default period.

◆ SetAnimationAtChannel() [2/2]

static void TaleWorlds.MountAndBlade.MBSkeletonExtensions.SetAnimationAtChannel ( this Skeleton  skeleton,
int  animationIndex,
int  channelNo,
float  animationSpeedMultiplier = 1.0f,
float  blendInPeriod = -1.0f,
float  startProgress = 0.0f 
)
static

◆ GetActionAtChannel()

static ActionIndexCache TaleWorlds.MountAndBlade.MBSkeletonExtensions.GetActionAtChannel ( this Skeleton  skeleton,
int  channelNo 
)
static