VPX Documentation
Flipper
3min
variables variables are items in vpx you can set, adjust or call call detail example x(float) y(float) baseradius(float) endradius(float) length(float) height(float) startangle(float) endangle(float) flipperradiusmin(float) eostorque(float) this value/factor affects the way how long a flipper arm stays in the up/raised position even when you released the flipper button on real pinballs it will take some time until the flipper solenoid loses it's power until the flipper drops down or is forced to move by a hitting ball the default value is 0 75 for fine tuning you can change that but not higher than 1 or lower than 0 5 or the result will be totally unrealistic eostorqueangle(float) this configures the range where the eos torque will be applied currentangle(float) only readable friction(float) 0 1 rampup(float) coil ramp up speed set to 0 for fastest flipper response lower values simulate a real pinball behavior, where a quick tap will launch the ball at lower power, enabling flipper passes elasticity(float) elasticityfalloff(float) return(float) mass(float) strength(float) scatter(float) amount of randomness added when the ball collides overridephysics(int) overrides the flipper physics settings with pre defined settings defined under preferences > physics options you can define up to 8 different physics settings for the table and the flippers save them to one of the 8 slots and by assigning the slot number to this overridephysics it overrides these settings default=0 (means use table settings) timerenabled(bool) timerinterval(int) set interval for triggering the timer (1 equals 1000 timer calls per second, 1000 equals 1 timer call per second, 1 makes it dependent on the fps that a user can reach) color(ole color) rubbercolor(ole color) rubberthickness(float) visible(bool) enabled(bool) rubberheight(float) rubberwidth(float) surface(string) uservalue(any) can store any user defined value for re use later on methods methods are procedures or actions that you can fire in vpx call detail example rotatetostart() rotatetoend() events event detail example init hit timer eos bos collide