Struct Target ​
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
csharp
public struct TargetConstructors ​
Target(FrameBone) ​
Creates a set, non-bone target from a world/character-space transform.
csharp
public Target(FrameBone transform)Parameters ​
transform FrameBone
Target(StringToken, Vector3) ​
Creates a set target that follows a bone, moved by an offset in model space.
csharp
public Target(StringToken boneID, Vector3 modelSpaceOffset)Parameters ​
boneID StringToken
modelSpaceOffset Vector3
Target(KVObject) ​
Reads the Target from its KeyValues3 data.
csharp
public Target(KVObject data)Parameters ​
data KVObject
Properties ​
BoneID ​
csharp
public readonly StringToken BoneID { get; }Property Value ​
HasOffsets ​
csharp
public bool HasOffsets { readonly get; set; }Property Value ​
bool
IsBoneTarget ​
csharp
public readonly bool IsBoneTarget { get; }Property Value ​
bool
IsSet ​
csharp
public bool IsSet { readonly get; set; }Property Value ​
bool
IsUsingBoneSpaceOffsets ​
csharp
public bool IsUsingBoneSpaceOffsets { readonly get; set; }Property Value ​
bool
Transform ​
Either the actual transform or the offsets that need to be applied
csharp
public FrameBone Transform { readonly get; set; }Property Value ​
Methods ​
SetOffsets(Quaternion, Vector3, bool) ​
csharp
public void SetOffsets(Quaternion rotationOffset, Vector3 translationOffset, bool isBoneSpaceOffset)Parameters ​
rotationOffset Quaternion
translationOffset Vector3
isBoneSpaceOffset bool
TryGetTransform(Pose, out FrameBone) ​
csharp
public readonly bool TryGetTransform(Pose pose, out FrameBone result)Parameters ​
pose Pose
result FrameBone
Returns ​
bool

