Safe to apply forces on same frame Entity is added to Space?
Posted: Tue Apr 19, 2011 1:18 pm
In the latest source which I downloaded Friday evening, I'm noticing some weirdness when applying forces to an Entity after it's been added to the Space, but before the next Space.Update() call.
The linear component seems to be correctly applied. However, it appears as though no angular forces are being computed/applied. Just for testing purposes, I deferred the application of the force until after the next Space.Update() call after adding the entity, and that seems to work. Only problem though, is that doesn't play very nicely with the threaded Update/Render setup I'm running with.
Bottom line -- is it safe to apply forces to an Entity that has just been added to a Space and before the next Space.Update() call?
The linear component seems to be correctly applied. However, it appears as though no angular forces are being computed/applied. Just for testing purposes, I deferred the application of the force until after the next Space.Update() call after adding the entity, and that seems to work. Only problem though, is that doesn't play very nicely with the threaded Update/Render setup I'm running with.
Bottom line -- is it safe to apply forces to an Entity that has just been added to a Space and before the next Space.Update() call?