Method: CP::Shape#sensor=

Defined in:
ext/chipmunk/rb_cpShape.c

#sensor=(sensor) ⇒ Object



64
65
66
67
68
69
# File 'ext/chipmunk/rb_cpShape.c', line 64

static VALUE
rb_cpShapeSetSensor(VALUE self, VALUE sensor) {
  int sens = (NIL_P(sensor) || (!sensor)) ? 0 : 1;
  SHAPE(self)->sensor =  sens;
  return sensor;
}