Class: CP::BodyStatic

Inherits:
Body
  • Object
show all
Defined in:
lib/chipmunk.rb

Instance Method Summary collapse

Methods inherited from Body

#a, #a=, #activate, #add_to_space, #ang_vel, #ang_vel=, #angle, #angle=, #apply_force, #apply_impulse, #f, #f=, #force, #force=, #i, #i=, #kinetic_energy, #local2world, #m, #m=, #m_inv, #mass, #mass=, #mass_inv, #moment, #moment=, #moment_inv, new_static, #object, #object=, #p, #p=, #pos, #pos=, #position_func, #remove_from_space, #reset_forces, #rogue?, #rot, #sleep?, #sleep_alone, #sleep_group, #sleep_self, #sleep_with_group, #sleep_with_self, #sleeping?, #static?, #t, #t=, #torque, #torque=, #update_position, #update_velocity, #v, #v=, #v_limit, #v_limit=, #vel, #vel=, #velocity_func, #w, #w=, #w_limit, #w_limit=, #world2local

Constructor Details

#initializeBodyStatic

Returns a new instance of BodyStatic.



131
132
133
# File 'lib/chipmunk.rb', line 131

def initialize
  super(Float::INFINITY, Float::INFINITY)
end

Instance Method Details

#chipmunk_objectsObject



135
136
137
138
# File 'lib/chipmunk.rb', line 135

def chipmunk_objects
  # return [] instead of [self] so the static body will not be added.
  []
end