static mrb_value arbiter_get_surface_velocity(mrb_state* mrb, mrb_value self) { cpArbiter* arbiter; cpVect vect; arbiter = mrb_cp_get_arbiter_ptr(mrb, self); vect = cpArbiterGetSurfaceVelocity(arbiter); return mrb_cp_vect_value(mrb, vect); }
cVect cArbiter::SurfaceVelocity() { return tovect( cpArbiterGetSurfaceVelocity( mArbiter ) ); }
int modArbiterGetSurfaceVelocity(INSTANCE * my, int * params){ cpVect v=cpArbiterGetSurfaceVelocity((cpArbiter *)params[0]); *(float*)params[1]=v.x; *(float*)params[2]=v.y; return 1; }