Class: BulldogPhysics::CollisionBox

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

#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_sizeObject

Returns the value of attribute half_size.



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

def half_size
  @half_size
end