Oh btw... how do we realize the rotation around a custom axis in opengl ? Youll need to calculate the angle between every single vertice and the x/y axis... so theres no way to realize this in the model matrix ?
@Tyyppi_77 entity_type | Entity... once you call registry.create() this returns that type which acts as the identity of a entity :) if you reference this you can simply use the registry to manipulate the entity
So how do we solve that "Rotate around custom axis" problem in opengl ? Do we just use the middle point of the object we wanna rotate to calculate the angle between the axis to bring it to z ? ^^ @DMGregory Thanks again ! :D
Well we had the formula to rotate a point around a custom axis ^^ The problem here is just... i have no idea how this works with the model matrix... because we need to determine a angle between every point and the x/y angle to rotate the point towards z... the model matrix is getting multiplied with every single vertice to transform it... so we cannot use a custom model matrix for every vertice
Rotation around arbitrary axis is awfull... it simply does not work in my case... im searching for hours since the right way... i implemented this formula here youtube.com/watch?v=XqNCbe2flb8
The problem here is... when we rotate that damn point onto the z axis... the rotation of the z axis and the reverting of the "help" rotations result in the same point we started with