Method: CP::Space#add_shape

Defined in:
ext/chipmunk/rb_cpSpace.c

#add_shape(shape) ⇒ Object



343
344
345
346
347
348
# File 'ext/chipmunk/rb_cpSpace.c', line 343

static VALUE
rb_cpSpaceAddShape(VALUE self, VALUE shape) {
  cpSpaceAddShape(SPACE(self), SHAPE(shape));
  rb_ary_push(rb_iv_get(self, "@active_shapes"), shape);
  return shape;
}