Class: BulldogPhysics::CollisionSphere
- Inherits:
-
CollisionPrimitive
- Object
- CollisionPrimitive
- BulldogPhysics::CollisionSphere
- Defined in:
- lib/RigidBodies/collision_shapes.rb
Instance Attribute Summary collapse
-
#radius ⇒ Object
Returns the value of attribute radius.
Attributes inherited from CollisionPrimitive
Instance Method Summary collapse
-
#initialize ⇒ CollisionSphere
constructor
A new instance of CollisionSphere.
Methods inherited from CollisionPrimitive
#calculate_internals, #get_axis, #get_transform
Constructor Details
#initialize ⇒ CollisionSphere
Returns a new instance of CollisionSphere.
35 36 37 38 |
# File 'lib/RigidBodies/collision_shapes.rb', line 35 def initialize() super() @radius = 1 end |
Instance Attribute Details
#radius ⇒ Object
Returns the value of attribute radius.
33 34 35 |
# File 'lib/RigidBodies/collision_shapes.rb', line 33 def radius @radius end |