chrono
chrono copied to clipboard
Mapping irr::core::matrix4 to PyChrono
I've been trying to control the orientation of the irrlicht camera through code (have the +z axis pointing up). It seems I need to use the .getAbsoluteTransformation()
or .getProjectionMatrix()
methods but they take irr::core::matrix4
as an input. Unlike irrlicht.vector3df
, it's not mapped to Python through SWIG.
Thought you guys ought to know! I'd look at implementing it myself and submitting a pull request but I haven't played with SWIG before so I'll leave it up to you much smarter people.
@SoWizard those parts of Irrlicht API are not wrapped, but you do have access to SetPosition and SetTarget, in most scenarios it should do the trick. Also, given that we plan to move away from Irrlicht, adding Python bindings for that part is not a priority. Please let me know if you can get the job done with the available methods. Thanks, Simon