Struct Binary
Memory-ready runtime asset that contains the animation library and supplementary information required by the Kinematica runtime.
Namespace: Unity.Kinematica
Assembly: solution.dll
Syntax
public struct Binary
Remarks
Kinematica strictly distinguishes between the editor and runtime asset. The asset builder in the Unity editor generates the runtime asset from from the editor asset. Conceptionally both representations are identical. The runtime asset contains additional acceleration structures.
Properties
Name | Description |
---|---|
Sample |
Returns the sample rate as number of samples per second. |
Time |
Time horizon in seconds. |
num |
Returns the number of code books stored in the runtime asset. |
num |
Returns the number of intervals stored in the runtime asset. |
num |
Returns the number of animation rig joints. |
num |
Returns the number of markers stored in the runtime asset. |
num |
Returns the number of individual animation poses stored in the runtime asset. |
num |
Returns the number of segments stored in the runtime asset. |
num |
Returns the number of tag lists stored in the runtime asset. |
num |
Returns the number of tags stored in the runtime asset. |
num |
Returns the number of traits stored in the runtime asset. |
Methods
Name | Description |
---|---|
Advance(Sampling |
Advances a sampling time by a certain amount of time. |
Contains(ref Tag |
Checks if a given trait belongs to a given trait list. |
Contains(Tag |
Checks if a given trait belongs to a given trait list. |
Create |
Create a pose fragment from a sampling time. |
Create |
Creates a trajectory fragment from sequence of root transforms. |
Create |
Creates a trajectory fragment from a sampling time. |
Debug |
Debug visualization for animation poses. |
Debug |
Debug visualization for animation poses. |
Debug |
Debug visualization for animation poses. |
Debug |
Debug visualization for trajectories. |
Debug |
Debug visualization for trajectories. |
Debug |
Debug visualization for trajectories. |
Debug |
Debug visualization for transforms, i.e. a position and rotation. |
Get |
|
Get |
Retrieves a reference to a codebook stored in the runtime asset. |
Get |
Returns a codebook index for a time index. |
Get |
Retrieve fragment index inside codebook that is associated to a time index |
Get |
|
Get |
Retrieves a reference to an interval stored in the runtime asset. |
Get |
Retrieves a reference to a marker stored in the runtime asset. |
Get |
Retrieves a reference to a payload stored in the runtime asset. |
Get |
Retrieves the associated payload (i.e. the instance of the user-defined value) for a given trait index. |
Get |
Retrieves a reference to a segment stored in the runtime asset. |
Get |
Retrieves a string that corresponds to the index passed as argument. |
Get |
Retrieves a reference to a tag stored in the runtime asset. |
Get |
Returns the tag index from the tag list at given index |
Get |
Retrieves a tag list given a tag list index from the runtime asset. |
Get |
Retrieves a reference to a trait stored in the runtime asset. |
Get |
Converts a value to a trait index. |
Get |
Retrieves the root transform for an animation frame. |
Get |
Retrieves the root transform for a sample time in seconds. |
Get |
Retrieves the root transform displacement for a delta sampling time. |
Get |
Retrieves the root transform for a sampling time. |
Get |
Calculates the relative root transform displacement between a frame and an offset. |
Get |
Calculates the relative root transform between a sampling time and a delta time in seconds. |
Get |
Converts the generic type into a type index. |
Index |
Converts a frame index to the corresponding time in seconds. |
Is |
Determines whether the specified trait value matches a payload stored in the runtime asset. |
Is |
Determines whether the specified marker is an instance of the type passed as argument. |
Is |
Determines if a given sampling time is valid. |
Is |
Determines if a given time index is valid. |
Reconstruct |
Reconstructs a pose fragment from the runtime asset that corresponds to a sampling time. |
Reconstruct |
Reconstructs a trajectory fragment for a given sampling time in the runtime asset. |
Time |
Converts a time in seconds to an index. |