chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Mapping irr::core::matrix4 to PyChrono

Open SoWizard opened this issue 3 years ago • 1 comments

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.

Screen Shot 2021-04-04 at 10 15 44 pm

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 avatar Apr 06 '21 23:04 SoWizard

@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

Benatti1991 avatar Oct 15 '21 14:10 Benatti1991