Class: BulldogPhysics::BoundingBox
- Inherits:
-
Object
- Object
- BulldogPhysics::BoundingBox
- Defined in:
- lib/RigidBodies/rigid_collisions.rb
Instance Attribute Summary collapse
-
#center ⇒ Object
readonly
Returns the value of attribute center.
Instance Method Summary collapse
-
#initialize(center = Vector3.new, half_of_size = Vector3.new) ⇒ BoundingBox
constructor
A new instance of BoundingBox.
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
#center ⇒ Object (readonly)
Returns the value of attribute center.
50 51 52 |
# File 'lib/RigidBodies/rigid_collisions.rb', line 50 def center @center end |