You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem this feature should fix
Components usually holds entities (i.e. CCamera holds an instance of Camera, CTransform holds an instance of FTransform, CAudioSource holds an instance of AudioSource, etc...). This adds a lot of redundant code like:
This would completely remove the need to handle internally/externally managed transforms in entities, and would greatly simplify the base entities too.
Instead of needing to have OvRendering::Entities::Entity defined this way:
Problem this feature should fix
Components usually holds entities (i.e.
CCamera
holds an instance ofCamera
,CTransform
holds an instance ofFTransform
,CAudioSource
holds an instance ofAudioSource
, etc...). This adds a lot of redundant code like:Expected solution
We could get rid of all these indirections by directly inheriting components from their respective entities:
CTransform
CCamera
And so on for other components...
This would completely remove the need to handle internally/externally managed transforms in entities, and would greatly simplify the base entities too.
Instead of needing to have
OvRendering::Entities::Entity
defined this way:We could have it defined this way instead:
Same for
AudioSource
inOvAudio
:The text was updated successfully, but these errors were encountered: