![]() |
#1
|
|||
|
|||
Setting the origin of a object to an object's center
In short I've loaded a square into vizard (.dae). The square's origin is not in the center of the square, but in it's top left hand corner. This is because of when it was exported that corner of the square was at the origin of the viewport. Is there a way for me to determine the center of the square in vizard and relocate it's origin to it's center? Pretty I just to fix this so when I move or rotate the object it move with respect to it's center.
I included a jpg displaying my problem. I am aware if I re-export the square realigned it will fix the problem, but I can't for various reasons. ![]() |
#2
|
|||
|
|||
If it is a square alignes with the axis getBoundingBox() might do.
Just get the box.size and do a translation of half the width, height and depth and you should be oke ![]() |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to move a text object and its children text objects as a whole | knightgba | Vizard | 2 | 08-24-2010 11:21 AM |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |
Lightwave objects rotation problem | hosier | Vizard | 6 | 02-13-2009 01:04 PM |
Positioning objects: center | johannes2 | Vizard | 2 | 02-12-2008 03:56 AM |
Center Viewport on Object (5DT Glove) | bjgold | Vizard | 3 | 07-25-2006 04:22 PM |