Ticket #277 (closed task: fixed)
restructure Mesh framework
| Reported by: | ArcRiley | Owned by: | ArcRiley |
|---|---|---|---|
| Priority: | High | Milestone: | beta1 |
| Component: | soy.bodies | Version: | Trunk |
| Keywords: | Cc: |
Description
I hate last minute changes but this one makes sense given recent work & discussions
Mesh should not be an instance of soy.bodies.Body, instead, Body should have the property .mesh
soy.meshes.Mesh should provide the rendering functionality currently provided by soy.bodies.Mesh when attached to a Body. Multiple bodies should be able to share the same Mesh.
The Body._render function will handle any render setup specific to itself (ie, position/rotation translation) and hand-off rendering to it's mesh.
Alternatives to a Mesh, ie a sprite aka billboard, can thus be used in it's place. This way we will not need to "fix" a certain rendering type to any type of Body. Arbitrary meshes, sprites, etc can be given to lights, fields, joints, etc.
This should be done before Beta-1 release.




Finished with [424] [425] and [427]