ProwlEngine / Prowl

An Open Source C# 3D Game Engine under MIT license, inspired by Unity and featuring a complete editor and built on Silk.NET
MIT License
328 stars 27 forks source link

[Engine] SceneObjects #95

Closed michaelsakharov closed 5 months ago

michaelsakharov commented 7 months ago

Removing Transforms on Gameobjects is becoming a bit confusing, it's weird to use and it's not particularly fast with things like Inheritance.

So after some pondering, we have another idea We Leave GameObjects as is like in unity, instead of optional transforms, we move Scene stuff to a SceneObject which GameObject inherits. A GameObject is just a fancy SceneObject with a Transform and a Component List.

Then you can in code Inherit a SceneObject and implement your own, much like a ScriptableObject. That way if you want like a Game Manager and it doesn't need a transform, you can implement it as a SceneObject This also prevents it from being turned off/on, can remove the need for Layers/tags, and so on, all that is specific to GameObjects

PaperPrototype commented 7 months ago

Love it

michaelsakharov commented 5 months ago

The more I think about this the more complications come up

At least for now I think this is outside the scope of the project :(

PaperPrototype commented 5 months ago

:( okie, at least I can access the physics engine directly without using gameObjects :P