Player inside cube

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Player inside cube

Post by Drofder2004 » October 6th, 2010, 6:56 pm

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]
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Moustache
CJ Worshipper
CJ Worshipper
Posts: 476
Joined: August 18th, 2008, 9:30 am

Re: Player inside cube

Post by Moustache » October 6th, 2010, 7:22 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests