-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
31 lines (22 loc) · 974 Bytes
/
notes
File metadata and controls
31 lines (22 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Managing render-GO communication
--------------------------------
renderer
-holds vertex list
-returns an index to the vertex list when an object is batched
gameobject
-holds position and velocity
-on update, update the renderer's vertex list with a new position
how does gameobect transmit that info to renderer?
-external manager
--gameobject manager is a likely outcome: can handle garbage collection for gameobjects no longer being rendered, etc.
-internal reference
how to handle interpolation?
-save velocity in the renderer too
--seems like the only reasonable way to do it, considering the methodology
--will have to be a feature that's added later on
this should all be refactored into a Renderable component in the future
aka later today
for GOs that manage multiple renderables:
-store a list of indexes
-store a list of renderables at the same index in the renderer
-store a 'block' of renderables, return the start and end indexes as a pair or vector