|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I want to translate an object along the y-axis.
I use
translate y*size-delta
this gives an unexpected effect. (There seems to be a translation along
the z axis aswell.
When I do
translate y*size
translate y*-delta
I get the expected result.
What am I missing?
--
Maurice
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> translate y*size-delta
Multiplication is performed before addition or subtraction, so that's
equivalent to
translate <0,1,0>*<size,size,size> - <delta,delta,delta>
or
translate <0,size,0> - <delta,delta,delta>
or
translate <-delta,size-delta,-delta>
What you want is
translate y*(size-delta)
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Slime wrote:
>>translate y*size-delta
>
>
> Multiplication is performed before addition or subtraction, so that's
> equivalent to
>
> translate <0,1,0>*<size,size,size> - <delta,delta,delta>
> or
> translate <0,size,0> - <delta,delta,delta>
> or
> translate <-delta,size-delta,-delta>
>
> What you want is
>
> translate y*(size-delta)
>
> - Slime
> [ http://www.slimeland.com/ ]
>
>
Thanks
That explains.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|