godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.29k stars 20.23k forks source link

Adding a transform on primitive meshes, good or bad? #20883

Closed spongeboburu closed 6 years ago

spongeboburu commented 6 years ago

I had problems using planes as billboards, found someone else with a similar issue https://github.com/godotengine/godot/issues/19249 so I experimented a bit and added translation and rotation to primitive meshes.

https://github.com/spongeboburu/godot/commit/fd474e232f8c6a500ed4439463987162c77fabf0

Basically all primitive meshes have the two added properties "Translation" and "Rotation Degrees" which work the exact same way as for spatial transformation section.

Maybe there's a better way of solving the billboard issue?

spongeboburu commented 6 years ago

Nobody else seems to like this, I'll just close it.

Calinou commented 2 years ago

For anyone stumbling upon this from a web search, note that a translation offset property was added to QuadMesh and PlaneMesh in https://github.com/godotengine/godot/pull/48764.

That said, there are plans to merge QuadMesh and PlaneMesh together.