Class: AttachmentInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/teien/base_object/attachment_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bone_name, object_name, offset_quaternion = Quaternion.new(1, 0, 0, 0), offset_position = Vector3D.new(0, 0, 0)) ⇒ AttachmentInfo

Returns a new instance of AttachmentInfo.



7
8
9
10
11
12
13
14
# File 'lib/teien/base_object/attachment_info.rb', line 7

def initialize(bone_name, object_name, 
               offset_quaternion = Quaternion.new(1, 0, 0, 0), 
               offset_position = Vector3D.new(0, 0, 0))
  @bone_name = bone_name 
  @object_name = object_name 
  @offset_quaternion = offset_quaternion
  @offset_position = offset_position
end

Instance Attribute Details

#bone_nameObject

Returns the value of attribute bone_name.



2
3
4
# File 'lib/teien/base_object/attachment_info.rb', line 2

def bone_name
  @bone_name
end

#object_nameObject

Returns the value of attribute object_name.



3
4
5
# File 'lib/teien/base_object/attachment_info.rb', line 3

def object_name
  @object_name
end

#offset_positionObject

Returns the value of attribute offset_position.



5
6
7
# File 'lib/teien/base_object/attachment_info.rb', line 5

def offset_position
  @offset_position
end

#offset_quaternionObject

Returns the value of attribute offset_quaternion.



4
5
6
# File 'lib/teien/base_object/attachment_info.rb', line 4

def offset_quaternion
  @offset_quaternion
end