beginFrame

@three-blocks/pro
beginFrame(body : Object, sharedDynamic : Object, tempSharedDynamic : Object)

Read pending main thread writes from temp shared buffer into active state.

Protocol:

  1. Wait if main thread is currently writing
  2. Read any properties that differ from sentinel values
  3. Reset temp buffer properties back to sentinel values
Parameters
bodyObject
Physics body object
sharedDynamicObject
Active shared buffer view
tempSharedDynamicObject
Temp buffer view for pending writes