Team:Calgary/20 July 2009
From 2009.igem.org
(Difference between revisions)
Prima.moinul (Talk | contribs) |
PatrickKing (Talk | contribs) |
||
Line 447: | Line 447: | ||
<br> | <br> | ||
<div class="heading"> | <div class="heading"> | ||
- | + | Still Colliding Objects | |
</div> | </div> | ||
<br> | <br> | ||
<div class="desc"> | <div class="desc"> | ||
</html> | </html> | ||
- | + | Retrospective Notebook: This entry was not written on this day, but derived later from working notes I made that day. | |
+ | |||
+ | I was still encountering problems with the collisions that I was using for my messaging system. Using collisions to trigger interactions between my molecule objects is unavoidable, that's just the only way for it to work: they hit each other! Finally, I settled on the system I'm still using now: since it's impossible to determine just what an object has collided with, objects that care about interacting with others now broadcast their name and position to all objects that might be interested on collision. If, for example, a Promoter receives a collision message from an RNA Polymerase, it's up to the promoter to determine whether the RNAP is allowed to bind, and then whether it is close enough to the promoter to connect. | ||
+ | |||
+ | Also began to encounter problems with objects having multiple copies of the 'stay put' script, each in different prims within the object. One could end up in the unintuitive situation of clicking a multi part object several times, but failing to change its state. Fixed this problem by having the multiple stay put scripts in a single object message each other to stay synchronized, so that when one click makes the object physical, all the other scripts know that the next click should make it nonphysical (despite not receiving the first click themselves). | ||
<html> | <html> |
Revision as of 20:54, 21 August 2009
UNIVERSITY OF CALGARY