Class: BulldogPhysics::CollisionSphere

Inherits:
CollisionPrimitive show all
Defined in:
lib/RigidBodies/collision_shapes.rb

Instance Attribute Summary collapse

Attributes inherited from CollisionPrimitive

#body, #offset, #transform

Instance Method Summary collapse

Methods inherited from CollisionPrimitive

#calculate_internals, #get_axis, #get_transform

Constructor Details

#initializeCollisionSphere

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

#radiusObject

Returns the value of attribute radius.



33
34
35
# File 'lib/RigidBodies/collision_shapes.rb', line 33

def radius
  @radius
end