Ticket #956 (closed task: fixed)

Opened 5 years ago

Last modified 2 years ago

move transform calls to models, add properties to adjust behavior

Reported by: ArcRiley Owned by: ArcRiley
Priority: Medium Milestone: beta3
Component: soy.models Version: Trunk
Keywords: Cc:

Description

currently Scene calls each Body._render, which performs it's translation and then calls it's ._model._render

This poses a hurdle for models like Billboard, which have to correct this translation. Further, the above sequence uses a function call (to _body) which does very little in itself.

Instead, Model._render should be called directly from the Scene. Special translation modes, such as billboarding, should be a property which many models can set independent of what they actually render.

Change History

comment:1 Changed 2 years ago by ArcRiley

  • Owner set to ArcRiley
  • Status changed from new to assigned

comment:2 Changed 2 years ago by ArcRiley

  • Status changed from assigned to closed
  • Resolution set to fixed

Done.

        for body in bodies
            if body.model != null
                body.model.render(body)
Note: See TracTickets for help on using tickets.