Thyme event values
Posted: Sun Aug 05, 2018 2:39 pm
I've been taking a look at the exact contents of the (e) value in each event, to see how many additional values besides e.this etc. existed. Here is a list of all values I found (e.this, e.other, e.geom and e.laser are left out)
Poststep:
float dt - The elapsed time since the last scene frame
Update:
float dt - The elapsed time since the last update;
OnCollide:
array normal: The collision normal
array pos: The point of collision
float soundGain: Appears to scale with collision impact force.
onClick:
array pos: Position of the cursor
int clickCount: how many clicks have occured in short succession
bool handled: still unsure about this
OnKey:
bool pressed: True when a key was pressed, false when released
string keyCode: The name of the key being held
string keyChar: The text symbol created by the key(If no symbol exists, i.e. arrow keys, this value does not exist either)
bool handled: Unsure about this
OnLaserHit:
array normal: normal of the hit surface
array pos: Point of hit
OnHitByLaser: Identical to above
OnDie: No additional values
OnSpawn: No additional values
Poststep:
float dt - The elapsed time since the last scene frame
Update:
float dt - The elapsed time since the last update;
OnCollide:
array normal: The collision normal
array pos: The point of collision
float soundGain: Appears to scale with collision impact force.
onClick:
array pos: Position of the cursor
int clickCount: how many clicks have occured in short succession
bool handled: still unsure about this
OnKey:
bool pressed: True when a key was pressed, false when released
string keyCode: The name of the key being held
string keyChar: The text symbol created by the key(If no symbol exists, i.e. arrow keys, this value does not exist either)
bool handled: Unsure about this
OnLaserHit:
array normal: normal of the hit surface
array pos: Point of hit
OnHitByLaser: Identical to above
OnDie: No additional values
OnSpawn: No additional values