示例#1
0
void bmx_body_slew(cpBody * body, cpVect * pos, cpFloat dt) {
	cpBodySlew(body, *pos, dt);
}
示例#2
0
// Intended for objects that are moved manually with a custom velocity integration function.
static VALUE 
rb_cpBodySlew(VALUE self, VALUE pos, VALUE dt) 
{
  cpBodySlew(BODY(self), *VGET(pos), NUM2DBL(dt));
  return self;
}