Interface IParticleModelObject ​
Namespace: ValveResourceFormat.Particles
Assembly: ValveResourceFormat.dll
The object a control point is bound to when it carries a model, such as the entity an effect is attached to. It gives the transform, the pose of the skeleton and the sequence being played. The model functions place particles on the hitboxes and bones of the model, skin snapshots to the model and read the scale of the transform.
public interface IParticleModelObjectProperties ​
Model ​
The model the object shows.
Model Model { get; }Property Value ​
SequenceIndex ​
The index of the sequence the object plays among the model's sequences, or -1 when it plays none.
int SequenceIndex { get; }Property Value ​
int
SequenceRate ​
How fast the object plays IParticleModelObject.SequenceIndex, 1 at its authored speed.
float SequenceRate { get; }Property Value ​
float
Transform ​
Carries the model's space into the world, scale included.
Matrix4x4 Transform { get; }Property Value ​
Methods ​
GetBonePose(Span<Matrix4x4>) ​
Writes every bone of IParticleModelObject.Model's skeleton in its current pose, in model space and indexed by bone index. bones is as long as the skeleton.
void GetBonePose(Span<Matrix4x4> bones)Parameters ​
Receives one transform per bone.

