Struct SamplingTime
A sampling time is used to uniquely identfy a sub-sampled animation frame.
Namespace: Unity.Kinematica
Assembly: solution.dll
Syntax
[Data("Sampling Time", DataFlags.SelfInputOutput)]
public struct SamplingTime : IDebugObject, IDebugDrawable
Remarks
A sampling time is a construct that is similar in nature to a time index. It serves exactly the same purpose but carries additional information that enables sub-sampling.
Fields
Name | Description |
---|---|
theta | Denotes a blend weight between 0 and 1 that control sub-frame sampling. |
time |
Denotes the time index this sampling time refers to. |
Properties
Name | Description |
---|---|
Invalid | Invalid sampling time. |
Is |
Determines if the given sampling time is valid or not. |
debug |
|
frame |
Denotes the frame index relative to the beginning of the segment that this sampling time refers to. |
segment |
Denotes the segment this sampling time refers to. |
Methods
Name | Description |
---|---|
Create(Time |
Create a sampling time from a time index and a theta value. |
Draw(Camera, ref Motion |