Class: BulldogPhysics::BodyRegistration
- Inherits:
-
Object
- Object
- BulldogPhysics::BodyRegistration
- Defined in:
- lib/RigidBodies/world.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#next_body ⇒ Object
Returns the value of attribute next_body.
Instance Method Summary collapse
-
#initialize(body = RigidBody.new, next_body = nil) ⇒ BodyRegistration
constructor
A new instance of BodyRegistration.
Constructor Details
#initialize(body = RigidBody.new, next_body = nil) ⇒ BodyRegistration
Returns a new instance of BodyRegistration.
5 6 7 8 |
# File 'lib/RigidBodies/world.rb', line 5 def initialize(body = RigidBody.new, next_body = nil) @body = body @next_body = next_body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/RigidBodies/world.rb', line 3 def body @body end |
#next_body ⇒ Object
Returns the value of attribute next_body.
3 4 5 |
# File 'lib/RigidBodies/world.rb', line 3 def next_body @next_body end |