Class: CP::StaticBody

Inherits:
Chipmunk::Body show all
Defined in:
lib/chipmunk.rb,
ext/chipmunk/rb_cpBody.c

Instance Method Summary collapse

Methods inherited from Chipmunk::Body

#a, #a=, #activate, #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, #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

#initializeObject

rb_define_singleton_method(c_cpStaticBody, “new”, rb_cpStaticBodyNew, 0);


51
52
53
54
55
56
57
# File 'ext/chipmunk/rb_cpBody.c', line 51

static VALUE
rb_cpBodyInitializeStatic(VALUE self) {
  cpBody *body = STATICBODY(self);
  cpBodyInitStatic(body);
  body->data = (void *)self;
  return self;
}

Instance Method Details

#chipmunk_objectsObject


142
143
144
145
# File 'lib/chipmunk.rb', line 142

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