docs.unity3d.com
    目次を表示する/隠す

    Struct MultiAimConstraintJob

    The MultiAim constraint job.

    Namespace: UnityEngine.Animations.Rigging
    Syntax
    [BurstCompile]
    public struct MultiAimConstraintJob : IWeightedAnimationJob, IAnimationJob

    Fields

    aimAxis

    Local aim axis of the constrained object Transform.

    Declaration
    public Vector3 aimAxis
    Field Value
    Type Description
    Vector3

    axesMask

    Axes mask. Rotation will apply on the local axis for a value of 1.0, and will be kept as is for a value of 0.0.

    Declaration
    public Vector3 axesMask
    Field Value
    Type Description
    Vector3

    driven

    The Transform handle for the constrained object Transform.

    Declaration
    public ReadWriteTransformHandle driven
    Field Value
    Type Description
    ReadWriteTransformHandle

    drivenOffset

    The post-rotation offset applied to the constrained object.

    Declaration
    public Vector3Property drivenOffset
    Field Value
    Type Description
    Vector3Property

    drivenParent

    The Transform handle for the constrained object parent Transform.

    Declaration
    public ReadOnlyTransformHandle drivenParent
    Field Value
    Type Description
    ReadOnlyTransformHandle

    maxLimit

    Maximum rotation value.

    Declaration
    public FloatProperty maxLimit
    Field Value
    Type Description
    FloatProperty

    minLimit

    Minimum rotation value.

    Declaration
    public FloatProperty minLimit
    Field Value
    Type Description
    FloatProperty

    sourceOffsets

    List of offsets to apply to source rotations if maintainOffset is enabled.

    Declaration
    public NativeArray<Quaternion> sourceOffsets
    Field Value
    Type Description
    NativeArray<Quaternion>

    sourceTransforms

    List of Transform handles for the source objects.

    Declaration
    public NativeArray<ReadOnlyTransformHandle> sourceTransforms
    Field Value
    Type Description
    NativeArray<ReadOnlyTransformHandle>

    sourceWeights

    List of weights for the source objects.

    Declaration
    public NativeArray<PropertyStreamHandle> sourceWeights
    Field Value
    Type Description
    NativeArray<PropertyStreamHandle>

    upAxis

    Local up axis of the constrained object Transform.

    Declaration
    public Vector3 upAxis
    Field Value
    Type Description
    Vector3

    weightBuffer

    Buffer used to store weights during job execution.

    Declaration
    public NativeArray<float> weightBuffer
    Field Value
    Type Description
    NativeArray<Single>

    worldUpAxis

    A static vector in world coordinates that is the general upward direction. This is used when World Up Type is set to WorldUpType.Vector.

    Declaration
    public Vector3 worldUpAxis
    Field Value
    Type Description
    Vector3

    worldUpObject

    The Transform handle for the world up object. This is used when World Up Type is set to WorldUpType.ObjectUp or WorldUpType.ObjectRotationUp.

    Declaration
    public ReadOnlyTransformHandle worldUpObject
    Field Value
    Type Description
    ReadOnlyTransformHandle

    worldUpType

    Specifies which mode to use to keep the upward direction of the constrained Object.

    Declaration
    public MultiAimConstraintJob.WorldUpType worldUpType
    Field Value
    Type Description
    MultiAimConstraintJob.WorldUpType

    Properties

    jobWeight

    The main weight given to the constraint. This is a value in between 0 and 1.

    Declaration
    public FloatProperty jobWeight { readonly get; set; }
    Property Value
    Type Description
    FloatProperty
    Implements
    IWeightedAnimationJob.jobWeight

    Methods

    ProcessAnimation(AnimationStream)

    Defines what to do when processing the animation.

    Declaration
    public void ProcessAnimation(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    Implements
    IAnimationJob.ProcessAnimation(AnimationStream)

    ProcessRootMotion(AnimationStream)

    Defines what to do when processing the root motion.

    Declaration
    public void ProcessRootMotion(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    Implements
    IAnimationJob.ProcessRootMotion(AnimationStream)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)