Jump to content

[SOLVED] Scaling a node doesn't correspondingly scale the Shapes it contains


photo

Recommended Posts

We assigned a Dummy Body and a Convex shape to a certain node and then applied a Scale to the node reference.
When we do intersection tests, the bodies do not seem to have been scaled accordingly (even though visually the node looks scaled down).
We use body.renderShapes() in our game to visualize theses shapes and they look scaled down, but again intersection testing doesn't seem to take this into account.

Is this a known problem and are there workarounds?

Thanks,
Ashwin.

Link to comment

Thanks danni :)

My request to Team Unigine would be at least correct the behaviour of body.renderShapes() so that it shows the "non-scaled" shapes so the user is not puzzled as to why intersection/collision is not working fine.

 

-a.

Link to comment
×
×
  • Create New...