VPX Documentation

Ball

1min
variables variables are items in vpx you can set, adjust or call call detail example color(ole color) sets color of ball mass(float) weight of ball radius(float) size of ball x(float) x position on table y(float) y position on table z(float) z position on table velx(float) x velocity vely(float) y velocity velz(float) z velocity angvelx(float) angular velocity x (read only) angvely(float) angular velocity y (read only) angvelz(float) angular velocity z (read only) angmomx(float) angular momentum x activeball angmomx = 0 ' stop ball spin angmomy(float) angular momentum y activeball angmomy = 0 ' stop ball spin angmomz(float) angular momentum z activeball angmomz = 0 ' stop ball spin image(string) image for ball frontdecal(string) image of the ball front decal decalmode(bool) switch between using the ball decal as ball logo or ball 'scratches' id(int) gets a unique id for each ball created or allows to set an artificial one to distinguish different balls on the table bulbintensityscale(float) allows to dampen/scale the intensity of (bulb )light reflections on each ball (e g to simulate shadowing in the ball lane, etc) reflectionenabled(bool) if playfield reflects objects this can be used to enable/disable the reflection for a specific ball playfieldreflectionscale(float) allows to dampen/scale the contribution of the playfield reflections on each ball (see ballplayfieldreflectionscale() for the table) forcereflection(bool) if enabled the ball will be reflection on the playfield even it's on a ramp or an upper playfield (default=0) visible(bool) changes if the ball is visible on the playfield or not (e g only physics simulated) uservalue(any) can store any user defined value for re use later on