{
public ReadWriteTransformHandle constrained;
public ReadOnlyTransformHandle source;
public float3 invert;
public BoolProperty xInvert;
public BoolProperty yInvert;
public BoolProperty zInvert;
public FloatProperty jobWeight { get; set; }
float w = jobWeight.Get(stream);
if (w > 0f)
float3 invertMask = new float3(
math.select(1f, -1f, xInvert.Get(stream)),
math.select(1f, -1f, yInvert.Get(stream)),
math.select(1f, -1f, zInvert.Get(stream))
);
math.lerp(constrained.GetPosition(stream), source.GetPosition(stream) * invert, w)
math.lerp(constrained.GetPosition(stream), source.GetPosition(stream) * invertMask, w)
}
constrained = ReadWriteTransformHandle.Bind(animator, data.constrainedObject),
source = ReadOnlyTransformHandle.Bind(animator, data.sourceObject),
invert = new float3(data.xInvert ? -1f : 1f, data.yInvert ? -1f : 1f, data.zInvert ? -1f: 1f)
xInvert = BoolProperty.Bind(animator, component, PropertyUtils.ConstructConstraintDataPropertyName(nameof(data.xInvert))),
yInvert = BoolProperty.Bind(animator, component, PropertyUtils.ConstructConstraintDataPropertyName(nameof(data.yInvert))),
zInvert = BoolProperty.Bind(animator, component, PropertyUtils.ConstructConstraintDataPropertyName(nameof(data.zInvert)))
};
fileFormatVersion: 2
guid: 500a29b409189a5449ac7b3fe6d98a88
guid: d3d4cc49e730d334ba57c844fa0a5e6c
MonoImporter:
externalObjects: {}
serializedVersion: 2
guid: 0d1c9e7fe5bce9c40ad385ecd4cc880d
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant: