Ok.. i´m working on a template Project for my workshop. But got a little Problem...
I created a Level. inside is a straigth way, with a little half-pipe at the end. The way and the pipe are made of 13 plates. The pipe is built of 6 models. each has a higher roll-value ( to rotate it to a half-pipe ).
Now i created a ball on the way. i want the ball to fly straight on, ask for the pipe-plates roll value.. and set the balls own tilt to the you.roll
ok.. works fine. The plate gives his roll-value to the ball. BUT. Now the tilt of the ball is 15 ( the roll-value of the 1st pipe-plate ). But the c_trace is scanning straight down... How to say the tracing, to trace into the new direction?
first create a downvector (0,0,-1000) by your trace-depth(here 1000) and vec_rotate it by the players angle. then add the balls coordinates to it (vec_add) and that is your position to trace to.
Re: [Workquestions] Pipes, Ramps and Loops
[Re: Scorpion]
#260074 04/08/0919:3404/08/0919:34
1.) the ball shouldn´t touch the ground.. he should fly above it, in a maximum high of 20.. and a minimum high of 15.
2.) i added my.skill1 ( the distance to the trace-target ) to the Panel. But if the Ball is at the highest point, my.skill1 is 500 and higher o.O
But the distance looks smaller ^^
The red point is the position, the ball has to be if everythings works...
the blue ring shows the distant of the ball to the ground ( in the picture, the ground is up-right to the ball ).. but 533 seems a bit to much... And the Tilt-Angle of the ball ( in Picture it is 39 ) seems to be wrong there..
This is omething I'll need testing time to do, and Im at work surrounded by people who would notice me working on this. Its going to have to wait 8 hours or so, unless people knock off early for easter weekend.
Any chance of me getting the whole project zipped? If its not too hard, save me having to build a testbed to test your code in.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial