View Single Post
  #1  
Old 06-19-2013, 04:24 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
Adjusting the centre of an object

Hi,

I have a set of .dae files, each containing one object. The objects are not centred in the files. I am wondering whether there is any way to centre the objects in Vizard using programming?

More details... I want to create a grid of objects and I need to put them exactly at the nodes. I used .getPosition() method to look at the position of the object within the .dae files, but it always reports [0, 0, 0]. I used .center method as well. It doesn't make sense though, as this method is also based on the origin of the .dae file, rather the object in it. Any suggestion would be highly appreciated. Very many thanks.

Greetings
Amir
Reply With Quote