Rubber
Variables are items in vpx you can set, adjust or call.
Call | Detail | Example |
---|---|---|
Name(string) | | |
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) | |
HasHitEvent(bool) | | |
Thickness(int) | | |
Collidable(bool) | | |
HitHeight(float) | defines the collision height of a rubber (default is 25.0 midpoint of a standard ball with size 50) | |
Material(string) | | |
Visible(bool) | | |
EnableStaticRendering(bool) | if set the rubber is only rendered once (like walls) any dynamic changes later won't have an effect. This is useful for static rubbers like rubbers on posts. | |
Image(string) | texture name | |
Elasticity(float) | | |
ElasticityFalloff(float) | | |
Friction(float) | 0..1 | |
Scatter(float) | | |
RotX(float) | angle to rotate the whole rubber around the X axis | |
RotY(float) | angle to rotate the whole rubber around the Y axis | |
RotZ(float) | angle to rotate the whole rubber around the Z axis | |
EnableShowInEditor(bool) | if set one cannot adjust the control points of the rubber but the rotation angles are applied to the rubber mesh in the editor. | |
ReflectionEnabled(bool) | default=true | |
UserValue(any) | can store any user defined value for re-use later-on | |
Event | Detail | Example |
---|---|---|
_Init | | |
_Hit | | |
_Timer | | |