Changes between Version 1 and Version 2 of Ticket #1906, comment 9


Ignore:
Timestamp:
Jun 21, 2013, 12:40:39 AM (11 years ago)
Author:
historic_bruno

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1906, comment 9

    v1 v2  
    77}}}
    88
    9 What if we had a `CCmpPositionStatic`, and `CCmpVisualActor` tested a new `IsStatic()` method before interpolating? This static position would be used for trees, mines, decorative objects, buildings, etc. (construction previews would still need interpolation, maybe we could make them use the dynamic position component)  The interface would be the same, they'd both be instances of `ICmpPosition`. There would still be some unnecessary interpolation in `CmpVisualActor`, e.g. stationary units, but we'd also have no interpolation in all the entities using `CmpPositionStatic`, and the nice thing is we save ourselves from all these bugs.
     9What if we had a `CCmpPositionStatic`, and `CCmpVisualActor` tested a new `IsStatic()` method before interpolating? This static position would be used for trees, mines, decorative objects, buildings, etc. (construction previews would still need interpolation, maybe we could make them use the dynamic position component)  The interface would be the same, they'd both be instances of `ICmpPosition`.
     10
     11There would still be some unnecessary interpolation in `CmpVisualActor`, e.g. stationary units, but we'd also have no interpolation in all the entities using `CmpPositionStatic`, and the nice thing is we save ourselves from all these bugs.
    1012
    1113Any thoughts on this?