Class: ODE::World
Instance Attribute Summary
Attributes included from ObjectID
#id
Instance Method Summary
collapse
Methods included from ObjectID
by_id, #initialize, #method_missing, set_by_id
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class ODE::ObjectID
Instance Method Details
#cfm ⇒ Object
284
285
286
|
# File 'lib/ode.rb', line 284
def cfm
ODE.dWorldGetCFM(@id)
end
|
#cfm=(v) ⇒ Object
281
282
283
|
# File 'lib/ode.rb', line 281
def cfm=(v)
ODE.dWorldSetCFM(@id, v)
end
|
#erp ⇒ Object
278
279
280
|
# File 'lib/ode.rb', line 278
def erp
ODE.dWorldGetERP(@id)
end
|
#erp=(v) ⇒ Object
275
276
277
|
# File 'lib/ode.rb', line 275
def erp=(v)
ODE.dWorldSetERP(@id, v)
end
|
#impulse_to_force(stepsize, impulse) ⇒ Object
266
267
268
269
270
271
272
|
# File 'lib/ode.rb', line 266
def impulse_to_force(stepsize, impulse)
c_force = SWIG::TYPE_p_float.create(3)
ODE.dWorldImpulseToForce(@id, stepsize, impulse[0], impulse[1], impulse[2], c_force)
ruby_force = c_force.to_a
c_force.destroy
ruby_force
end
|