Class: BulldogPhysics::ContactGenRegistration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gen = ContactGenerator.new, next_gen = nil) ⇒ ContactGenRegistration

Returns a new instance of ContactGenRegistration.



14
15
16
17
# File 'lib/RigidBodies/world.rb', line 14

def initialize(gen = ContactGenerator.new, next_gen = nil)
	@gen = gen
	@next_body = next_gen
end

Instance Attribute Details

#genObject

Returns the value of attribute gen.



12
13
14
# File 'lib/RigidBodies/world.rb', line 12

def gen
  @gen
end

#next_genObject

Returns the value of attribute next_gen.



12
13
14
# File 'lib/RigidBodies/world.rb', line 12

def next_gen
  @next_gen
end