Struct CharacterInterpolation
Component used for handling character interpolation. By default, the component is only added if interpolation was enabled in authoring
Inherited Members
Namespace: Unity.CharacterController
Syntax
[Serializable]
[WriteGroup(typeof(LocalToWorld))]
public struct CharacterInterpolation : IComponentData, IQueryTypeParameter
Fields
InterpolatePosition
Whether or not to interpolate position
Declaration
public byte InterpolatePosition
Field Value
Type | Description |
---|---|
Byte |
InterpolateRotation
Whether or not to interpolate rotation
Declaration
public byte InterpolateRotation
Field Value
Type | Description |
---|---|
Byte |
InterpolationFromTransform
The "previous" transform to interpolate from
Declaration
public RigidTransform InterpolationFromTransform
Field Value
Type | Description |
---|---|
RigidTransform |
InterpolationSkipping
Flags for skipping interpolation
Declaration
public byte InterpolationSkipping
Field Value
Type | Description |
---|---|
Byte |
Methods
ShouldSkipNextPositionInterpolation()
Whether or not the interpolation flags are set to skip position interpolation
Declaration
public bool ShouldSkipNextPositionInterpolation()
Returns
Type | Description |
---|---|
Boolean | Whether or not the interpolation flags are set to skip position interpolation |
ShouldSkipNextRotationInterpolation()
Whether or not the interpolation flags are set to skip rotation interpolation
Declaration
public bool ShouldSkipNextRotationInterpolation()
Returns
Type | Description |
---|---|
Boolean | Whether or not the interpolation flags are set to skip rotation interpolation |
SkipNextInterpolation()
Sets interpolation flags to skip position and rotation interpolation
Declaration
public void SkipNextInterpolation()
SkipNextPositionInterpolation()
Sets interpolation flags to skip position interpolation
Declaration
public void SkipNextPositionInterpolation()
SkipNextRotationInterpolation()
Sets interpolation flags to skip rotation interpolation
Declaration
public void SkipNextRotationInterpolation()