|
How to combine x,y,z,pan,tilt,roll in one element ?
#341370
09/15/10 15:19
09/15/10 15:19
|
Joined: Nov 2003
Posts: 433 The Netherlands
Toon
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 433
The Netherlands
|
How can i turn my canon to the you position? I have a simplified version of my code below, please asume the you pointer is set.. What i basicly want to know is how to combine a vector and angle in one element like 'before' with wdl
function act_canon()
{
var temp;
VECTOR testvec;
while(1)
{
vec_set(temp,you.x);
vec_sub(temp,testvec.x);
vec_to_angle(testvec.pan,temp);
ent_bonerotate(my,"canon",testvec.pan);
wait(1);
}
}
|
|
|
Entire Thread
|
How to combine x,y,z,pan,tilt,roll in one element ?
|
Toon
|
09/15/10 15:19
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Helghast
|
09/15/10 16:04
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Saturnus
|
09/15/10 16:05
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
MasterQ32
|
09/15/10 16:15
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Toon
|
09/15/10 16:56
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
MrGuest
|
09/15/10 20:36
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Toon
|
09/15/10 16:25
|
|
|