[fixed] Rectangle scene node

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Yustme
Posts: 107
Joined: Sat Dec 01, 2007 10:50 pm

[fixed] Rectangle scene node

Post by Yustme »

Hi,

First of all, this is not a bug!

I am converting the newton examples from version 2 beta to use the irrlicht engine for the graphics. The plan is to post them in the tutorial forum for anyone who wants to use newton as the physics engine.

Right now im trying to convert an example that uses 150 rectangles. Irrlicht doesn't have a function for creating a rectangle scene node.

I would have to use the cube and scale it down on a side (or 2). But that won't do any good to the physics part.

So i was wondering if there is any chance of adding a rectangle scene node to the engine?

Thanks in advance!

P.s. sorry if i miss post this thread.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can use the transformMesh method from MeshManipulator to scale a mesh to new coords. This transformation is performed on the actual vertices, i.e. the physics engine would realize the changes.
Post Reply