Class: AttachmentInfo
- Inherits:
-
Object
- Object
- AttachmentInfo
- Defined in:
- lib/teien/base_object/attachment_info.rb
Instance Attribute Summary collapse
-
#bone_name ⇒ Object
Returns the value of attribute bone_name.
-
#object_name ⇒ Object
Returns the value of attribute object_name.
-
#offset_position ⇒ Object
Returns the value of attribute offset_position.
-
#offset_quaternion ⇒ Object
Returns the value of attribute offset_quaternion.
Instance Method Summary collapse
-
#initialize(bone_name, object_name, offset_quaternion = Quaternion.new(1, 0, 0, 0), offset_position = Vector3D.new(0, 0, 0)) ⇒ AttachmentInfo
constructor
A new instance of AttachmentInfo.
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_name ⇒ Object
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_name ⇒ Object
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_position ⇒ Object
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_quaternion ⇒ Object
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 |