Class: TinyGLTF::AnimationChannel

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/tiny_gltf.rb,
ext/tiny_gltf/rb_tiny_gltf_init.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

included, #inspect, #to_h, #to_json

Instance Attribute Details

#animationObject (readonly)

Returns the value of attribute animation.



187
188
189
# File 'lib/tiny_gltf.rb', line 187

def animation
  @animation
end

Instance Method Details

#modelObject



195
196
197
# File 'lib/tiny_gltf.rb', line 195

def model
  animation.model
end

#samplerObject



199
200
201
# File 'lib/tiny_gltf.rb', line 199

def sampler
  animation.samplers[sampler_index]
end

#target_nodeObject



203
204
205
# File 'lib/tiny_gltf.rb', line 203

def target_node
  model.nodes[target_node_index]
end