Class: BulldogPhysics::CollisionBox
- Inherits:
-
CollisionPrimitive
- Object
- CollisionPrimitive
- BulldogPhysics::CollisionBox
- Defined in:
- lib/RigidBodies/collision_shapes.rb
Instance Attribute Summary collapse
-
#half_size ⇒ Object
Returns the value of attribute half_size.
Attributes inherited from CollisionPrimitive
Instance Method Summary collapse
-
#initialize(half_size = Vector3.new) ⇒ CollisionBox
constructor
A new instance of CollisionBox.
Methods inherited from CollisionPrimitive
#calculate_internals, #get_axis, #get_transform
Constructor Details
#initialize(half_size = Vector3.new) ⇒ CollisionBox
Returns a new instance of CollisionBox.
55 56 57 58 |
# File 'lib/RigidBodies/collision_shapes.rb', line 55 def initialize(half_size = Vector3.new) super() @half_size = half_size end |
Instance Attribute Details
#half_size ⇒ Object
Returns the value of attribute half_size.
53 54 55 |
# File 'lib/RigidBodies/collision_shapes.rb', line 53 def half_size @half_size end |