About Store Forum Documentation Contact



Post Reply 
Centering mesh part.
Author Message
menajev Offline
Member

Post: #1
Centering mesh part.
Is it possible to make it in game just like in editor?
02-23-2011 08:38 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: Centering mesh part.
Isn't it just worldspace Vec(0,0,0)? Just like in the Editor it centers the Mesh to the center of the ground.

There is always evil somewhere, you just have to look for it properly.
02-23-2011 08:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
menajev Offline
Member

Post: #3
RE: Centering mesh part.
Not the same (or I misunderstood you). I want to use mech parts (e.g. leg) as a separated mesh but now it's center is same as it would be with whole mech (so when I put leg on Vec(0,0,0) it's really center is Vec(1,-2,0)).
(This post was last modified: 02-23-2011 09:04 PM by menajev.)
02-23-2011 09:04 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Centering mesh part.
Box b=part;
Vec c=b.center();
02-23-2011 09:10 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #5
RE: Centering mesh part.
(02-23-2011 09:04 PM)menajev Wrote:  Not the same (or I misunderstood you). I want to use mech parts (e.g. leg) as a separated mesh but now it's center is same as it would be with whole mech (so when I put leg on Vec(0,0,0) it's really center is Vec(1,-2,0)).

Ah ok i missed the "mesh parts" part, well i guess it works now smile

There is always evil somewhere, you just have to look for it properly.
02-23-2011 10:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply