SceneObject F32 Angle Help Request
by practicing01 · in Torque 2D Professional · 10/18/2013 (4:00 am) · 0 replies
Edit: Fixed, silly bugs I introduced: https://github.com/practicing01/Torque2D/commit/166030b796aa10e22dd1d7455d6eae116e64f13e
https://github.com/practicing01/Torque2D/commit/f10d3605a50104d34920d035f4d09d6de5f146e7
I have a SceneObject mounted to another. I want the child to have the parents angle but to also add to
that with its own angle (e.g. parent has 90 degrees, child has 10, child should have 90+10). How would I achieve this? Line 706 of SceneObject.cc is where I attempt this. It doesn't work, anyone know how float angles work in T2D and would like to help please?
https://github.com/practicing01/Torque2D/commit/f10d3605a50104d34920d035f4d09d6de5f146e7
I have a SceneObject mounted to another. I want the child to have the parents angle but to also add to
that with its own angle (e.g. parent has 90 degrees, child has 10, child should have 90+10). How would I achieve this? Line 706 of SceneObject.cc is where I attempt this. It doesn't work, anyone know how float angles work in T2D and would like to help please?