static mrb_value
arbiter_set_surface_velocity(mrb_state* mrb, mrb_value self)
{
  cpArbiter* arbiter;
  cpVect* vect;
  mrb_get_args(mrb, "d", &vect, &mrb_cp_vect_type);
  arbiter = mrb_cp_get_arbiter_ptr(mrb, self);
  cpArbiterSetSurfaceVelocity(arbiter, *vect);
  return mrb_nil_value();
}
Example #2
0
void cArbiter::SurfaceVelocity( cVect value ) {
	cpArbiterSetSurfaceVelocity( mArbiter, tocpv( value ) );
}
Example #3
0
int modArbiterSetSurfaceVelocity(INSTANCE * my, int * params){
    cpArbiterSetSurfaceVelocity((cpArbiter *)params[0],cpv(*(float*)&params[1],*(float*)&params[2]));
    return 1;
}