Jump to content

[SOLVED] Adjusting the Orientation of a Shape


Recommended Posts

Hi, 

 

Node editor allows to adjust the orientation of an added shape, but I could not find a corresponding method in script side. I am adding objects purely by script, and since shape class does not inherit from node, and does not have any local transformation method of its own, I can't orient a shapecylinder according to its mesh (mesh is a perpendicular cylinder, shape comes horizontal, and changing the orientation of the objectmesh and then adding the shape does not help, since shape is added in local frame).

 

Thanks. 

 

Edit: Body::setShapeTransform it is... Apperantly I missed that one. 

Link to comment
×
×
  • Create New...