Animation

@Serializable
data class Animation(var name: String? = null, val channels: List<GLTF2.Animation.Channel> = emptyList(), val samplers: List<GLTF2.Animation.Sampler> = emptyList(), val extensions: JsonElement? = null, val extras: JsonElement? = null) : GLTFProperty

Constructors

Link copied to clipboard
constructor(name: String? = null, channels: List<GLTF2.Animation.Channel> = emptyList(), samplers: List<GLTF2.Animation.Sampler> = emptyList(), extensions: JsonElement? = null, extras: JsonElement? = null)

Types

Link copied to clipboard
@Serializable
data class Channel(var name: String? = null, val sampler: Int = -1, val target: GLTF2.Animation.Channel.Target? = null, val extensions: JsonElement? = null, val extras: JsonElement? = null) : GLTFProperty
Link copied to clipboard
@Serializable
data class Sampler(var name: String? = null, val input: Int = -1, val interpolation: String = "LINEAR", val output: Int = -1, val extensions: JsonElement? = null, val extras: JsonElement? = null) : GLTFProperty

Properties

Link copied to clipboard

An array of animation channels. An animation channel combines an animation sampler with a target property being animated. Different channels of the same animation MUST NOT have the same targets.

Link copied to clipboard
open override val extensions: JsonElement? = null

JSON object with extension-specific objects.

Link copied to clipboard
open override val extras: JsonElement? = null

Although extras MAY have any type, it is common for applications to store and access custom data as key/value pairs. Therefore, extras SHOULD be a JSON object rather than a primitive value for best portability.

Link copied to clipboard
open override var name: String?
Link copied to clipboard

An array of animation samplers. An animation sampler combines timestamps with a sequence of output values and defines an interpolation algorithm.