Class: BulldogPhysics::BSPNode

Inherits:
BSPElement show all
Defined in:
lib/RigidBodies/rigid_collisions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plane = Plane.new, front = BSPElement.new, back = BSPElement.new) ⇒ BSPNode

Returns a new instance of BSPNode.



95
96
97
# File 'lib/RigidBodies/rigid_collisions.rb', line 95

def initialize(plane = Plane.new, front = BSPElement.new, back = BSPElement.new)
	@plane, @front, @back = plane, front, back
end

Instance Attribute Details

#backObject

Returns the value of attribute back.



93
94
95
# File 'lib/RigidBodies/rigid_collisions.rb', line 93

def back
  @back
end

#frontObject

Returns the value of attribute front.



93
94
95
# File 'lib/RigidBodies/rigid_collisions.rb', line 93

def front
  @front
end

#planeObject

Returns the value of attribute plane.



93
94
95
# File 'lib/RigidBodies/rigid_collisions.rb', line 93

def plane
  @plane
end