Class: BulldogPhysics::BSPNode
- Inherits:
-
BSPElement
- Object
- BSPElement
- BulldogPhysics::BSPNode
- Defined in:
- lib/RigidBodies/rigid_collisions.rb
Instance Attribute Summary collapse
-
#back ⇒ Object
Returns the value of attribute back.
-
#front ⇒ Object
Returns the value of attribute front.
-
#plane ⇒ Object
Returns the value of attribute plane.
Instance Method Summary collapse
-
#initialize(plane = Plane.new, front = BSPElement.new, back = BSPElement.new) ⇒ BSPNode
constructor
A new instance of BSPNode.
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
#back ⇒ Object
Returns the value of attribute back.
93 94 95 |
# File 'lib/RigidBodies/rigid_collisions.rb', line 93 def back @back end |
#front ⇒ Object
Returns the value of attribute front.
93 94 95 |
# File 'lib/RigidBodies/rigid_collisions.rb', line 93 def front @front end |
#plane ⇒ Object
Returns the value of attribute plane.
93 94 95 |
# File 'lib/RigidBodies/rigid_collisions.rb', line 93 def plane @plane end |