hope this isn’t too off topic or anything but here’s what I’ve figured out
on the <roll 12 -1><dampin> statements.
roll is like rocking the boat.
12 is the number of degrees to rock the boat.
the -1 is the second param for roll which gives a finishing angle for the
roll.
so if my first roll is 12 and the next spline path entity will be 16
I would use this for teh first roll
roll 12 +4 dampin
why +4 ?
my next entity wants to be at a roll of 16 when it starts so I add 4 degrees
to the previous roll of 12 so that I finish first at 16 degrees and start next roll at 16 degrees. confusing descript here, sorry.
What I’m trying to say is, if you dont add or subtract the difference from one point to the next, your object will snap from 12 degrees to 0 degrees and then start a new roll from 0 to the next angle you want.
I assume the dampin dampout is like the ease to and ease from in most modeling packages using follow path stuff.
I’m thinking that if I used dampin on one of these statements
the roll would be quick up to the roll angle specified, then ease to the finishing angle specified. Fast in, slow out. just a guess . maybe vice versa.
heres some scripts of the truck utilizing the roll <to angle> <finish angle>
trigger run_2
{
accum 1 bitset 2
followspline 0 tspln2 125 wait length 304 wait roll 8 +0
// was +0 because next spline starts at 8 degrees also
accum 1 bitreset 2
accum 3 set 2
trigger truck run_continue
}
trigger run_3
{
accum 1 bitset 2
followspline 0 tspln3 125 wait length 304 wait roll 8 +0
accum 1 bitreset 2
accum 3 set 3
trigger truck run_continue
}
trigger run_4
{
accum 1 bitset 2
followspline 0 tspln4 125 wait length 304 wait roll 8 +6
// was +6 because next spline starts at 14
accum 1 bitreset 2
accum 3 set 4
trigger truck run_continue
}
trigger run_5
{
accum 1 bitset 2
followspline 0 tspln5 125 wait length 304 wait roll 14 +2
accum 1 bitreset 2
accum 3 set 5
trigger truck run_continue
}
trigger run_6
{
accum 1 bitset 2
followspline 0 tspln6 125 wait length 304 wait roll 16 +5
accum 1 bitreset 2
accum 3 set 6
trigger truck run_continue
}
trigger run_7
{
accum 1 bitset 2
followspline 0 tspln7 125 wait length 304 wait roll 21 +0
accum 1 bitreset 2
accum 3 set 7
trigger truck run_continue
}
I hope this helps a little, I’m pretty sure I’m correct on the roll since it worked for my needs. I haven’t put the dampins dampouts yet so My suggestion to that was theoretical up to now. :chef: