Page 2 of 2

Re: Player inside cube

Posted: October 6th, 2010, 6:56 pm
by Drofder2004
Moustache wrote:Isn't it possible to set a center of the cube and let the direction be placed towards it.
Drofder2004 wrote:(player origin forward to centre of cube)
centre = (((ax+bx)/2), ((ay+by)/2), az));
[No need to edit Z value]

Re: Player inside cube

Posted: October 6th, 2010, 7:22 pm
by Moustache
Drofder2004 wrote:
Moustache wrote:Isn't it possible to set a center of the cube and let the direction be placed towards it.
Drofder2004 wrote:(player origin forward to centre of cube)
centre = (((ax+bx)/2), ((ay+by)/2), az));
[No need to edit Z value]
Sorry for my failure @ reading :oops: It was to early I guess :P

I am good enough with math I think :) And else I use google or ask it here. But I will give it my best shot.