Class: FMOD::Geometry::Rotation

Inherits:
Struct
  • Object
show all
Defined in:
lib/fmod/geometry.rb

Overview

Describes the orientation of a geometry object.

Instance Attribute Summary collapse

Instance Attribute Details

#forwardVector

The forwards orientation of the geometry object. This vector must be of unit length and perpendicular to the #up vector. You can specify nil to not update the forwards orientation of the geometry object.

Returns:

  • (Vector)

    the current value of forward



228
229
230
# File 'lib/fmod/geometry.rb', line 228

def forward
  @forward
end

#upVector

The upwards orientation of the geometry object. This vector must be of unit length and perpendicular to the #forward vector. You can specify nil to not update the upwards orientation of the geometry object.

Returns:

  • (Vector)

    the current value of up



228
229
230
# File 'lib/fmod/geometry.rb', line 228

def up
  @up
end