1 import fibraNow I need to reinstate the networking layer... and think about adding multi-core features via the new (in 2.6) multiprocessing module. It would be nice to have events magically transferred across process boundaries. FibraNet used to do this, but I haven't found a clean way of adding this to fibra, yet.
4 def task_a():
5 for i in xrange(10):
6 yield fibra.Send('AN_EVENT')
8 def task_b():
9 while True:
10 msg = yield fibra.Recv('AN_EVENT')
11 print 'Received:', msg
13 def test():
14 s = fibra.schedule()
19 if __name__ == "__main__":
Tuesday, November 18, 2008
Fibra grows events.
Fibra has grown an event handling plugin.
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...
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...
If you call gameObject.GetComponent , and there is no Collider on that gameObject, null is returned, but you will also see a memory allocati...
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...
import csv open("output.tsv", "w").write("\n".join("\t".join(e.strip() for e in i) for i in csv.rea...
Often, when building a game, you need to test if objects are colliding. The objects could be spaceships, rocks, mouse pointers, laser beams....
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...
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...
UniWeb now includes a tiny embedded web server which you can use to do crazy things. That is all.