Class: Jolt::Hit

Inherits:
Data
  • Object
show all
Defined in:
lib/jolt/hit.rb

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



4
5
6
# File 'lib/jolt/hit.rb', line 4

def body
  @body
end

#fractionObject (readonly)

Returns the value of attribute fraction

Returns:

  • (Object)

    the current value of fraction



4
5
6
# File 'lib/jolt/hit.rb', line 4

def fraction
  @fraction
end

#normalObject (readonly)

Returns the value of attribute normal

Returns:

  • (Object)

    the current value of normal



4
5
6
# File 'lib/jolt/hit.rb', line 4

def normal
  @normal
end

#pointObject (readonly)

Returns the value of attribute point

Returns:

  • (Object)

    the current value of point



4
5
6
# File 'lib/jolt/hit.rb', line 4

def point
  @point
end

#sub_shape_idObject (readonly)

Returns the value of attribute sub_shape_id

Returns:

  • (Object)

    the current value of sub_shape_id



4
5
6
# File 'lib/jolt/hit.rb', line 4

def sub_shape_id
  @sub_shape_id
end