kjl

04-30-2005, 01:46 PM

Is there a way to set an object's full position to a position vector with expressions?

I'm getting tired of doing:

Foo.PositionX: <lots of math to get a vec>.x

Foo.PositionY: <lots of math to get a vec>.y

Foo.PositionZ: <lots of math to get a vec>.z

and having to change all 3 locations every time I want to change the math.

I really just want some place to say

Foo.Position: <lots of math to get a vec>

It's especially aggravating when I have multi-line expressions: e.g.

Foo.PositionX: D

A: <some math>

B: <some math involving A>

C: <some math involving B>

D: <some math involving C>.x

Foo.PositionY: D

...

..

..

D: <....>.y

etc.

Thanks,

I'm getting tired of doing:

Foo.PositionX: <lots of math to get a vec>.x

Foo.PositionY: <lots of math to get a vec>.y

Foo.PositionZ: <lots of math to get a vec>.z

and having to change all 3 locations every time I want to change the math.

I really just want some place to say

Foo.Position: <lots of math to get a vec>

It's especially aggravating when I have multi-line expressions: e.g.

Foo.PositionX: D

A: <some math>

B: <some math involving A>

C: <some math involving B>

D: <some math involving C>.x

Foo.PositionY: D

...

..

..

D: <....>.y

etc.

Thanks,