Class: Stagecraft::MatrixNode

Inherits:
Node
  • Object
show all
Defined in:
lib/stagecraft/core/node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#cast_shadow, #children, #name, #parent, #position, #receive_shadow, #render_order, #rotation, #scale, #visible, #world_version

Instance Method Summary collapse

Methods inherited from Node

#add, #find, #local_matrix, #look_at, #remove, #transform_dirty!, #traverse, #world_matrix, #world_matrix_with_version, #world_position

Constructor Details

#initialize(matrix) ⇒ MatrixNode

Returns a new instance of MatrixNode.



147
148
149
150
# File 'lib/stagecraft/core/node.rb', line 147

def initialize(matrix, **)
  super(**)
  self.matrix = matrix
end

Instance Attribute Details

#matrixObject

Returns the value of attribute matrix.



145
146
147
# File 'lib/stagecraft/core/node.rb', line 145

def matrix
  @matrix
end