event.timeout(30, call_me_soon) #after 30 seconds!
event.loop(True) #loop once, return 0 if events are waiting.
event.loop(False) #loop until no more events are waiting.
Monday, April 19, 2010
A simple pyevent example.
Because I couldn't find one myself.
So, you've created a car prefab using WheelCollider components, and now you can apply a motorTorque to make the whole thing move along. ...
When you start working with threads in your Unity3D project, you will discover that many things need to be done in the main loop. For exampl...
I've just seen and used a brilliant ssh option. The command: sudo ssh -D localport user@externalhost will set up a local SOCKS proxy l...
Thank to Adrian Boeing I was inspired this morning to hack together a ripple shader for Unity3D. Thanks for the math Adrian. You can see t...
Possibly slightly more correct lighting. The rim light is now only applied in the direction of the sun, rather than being purely based on v...
Working with multiple threads is often a necessary evil. This is how I do it safely inside a Unity3D component. There are only certain time...
These MonoBehaviour classes allow for batch updating of all components in a single call. KinematicMotor example provided. It's a gentle ...
A Unity post processor to optimize meshes created with AssetForge . Reduces draw calls, combines meshes and allows batching.
Often, when building a game, you need to test if objects are colliding. The objects could be spaceships, rocks, mouse pointers, laser beams....