Class: BulldogPhysics::BoundingBox

Inherits:
Object
  • Object
show all
Defined in:
lib/RigidBodies/rigid_collisions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(center = Vector3.new, half_of_size = Vector3.new) ⇒ BoundingBox

Returns a new instance of BoundingBox.



52
53
54
55
# File 'lib/RigidBodies/rigid_collisions.rb', line 52

def initialize(center = Vector3.new, half_of_size = Vector3.new)
	@center = center
	@half_of_size = half_of_size
end

Instance Attribute Details

#centerObject (readonly)

Returns the value of attribute center.



50
51
52
# File 'lib/RigidBodies/rigid_collisions.rb', line 50

def center
  @center
end