[no bug]addCubeSceneNode and draw3DLine

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
sodandk
Competition winner
Posts: 340
Joined: Wed Aug 10, 2011 11:58 am

[no bug]addCubeSceneNode and draw3DLine

Post by sodandk »

Dont know if this is a bug, but I add a cube at 0,0,0 with the size of 1,1,1
and then draw a rect at 0,0,0 with size of 1,1... seems like that the center of the cube is at 0,0,0 and not
the left/down corner of the cube ... a bug or ?

Image
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: addCubeSceneNode and draw3DLine

Post by CuteAlien »

Center of cube at 0,0,0 would be what I expect without reading documentation. So I guess it was deliberate (only guessing myself, but I think it is ok this way).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: addCubeSceneNode and draw3DLine

Post by hybrid »

Yeah, cube node is basically used for marking certain places, and that's easier if the center is at (0,0,0)
Post Reply