Method: CP::Space#add_static_shape

Defined in:
ext/chipmunk/rb_cpSpace.c

#add_static_shape(shape) ⇒ Object



350
351
352
353
354
355
# File 'ext/chipmunk/rb_cpSpace.c', line 350

static VALUE
rb_cpSpaceAddStaticShape(VALUE self, VALUE shape) {
  cpSpaceAddStaticShape(SPACE(self), SHAPE(shape));
  rb_ary_push(rb_iv_get(self, "@static_shapes"), shape);
  return shape;
}