Class: BulldogPhysics::BodyRegistration

Inherits:
Object
  • Object
show all
Defined in:
lib/RigidBodies/world.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/RigidBodies/world.rb', line 3

def body
  @body
end

#next_bodyObject

Returns the value of attribute next_body.



3
4
5
# File 'lib/RigidBodies/world.rb', line 3

def next_body
  @next_body
end