1. #51

    Re: 2 Drive line to different path questions.

    Have a look again at tute video #25: Data Sources. Goto 2:45.

    As Shogun flicks through the Game Variable Data Sources which include your Rider Speed, Trigger Strengths, Stick Locations, Fire Value etc. And then he goes onto Object info Data Source. This includes object Location, Velocity and Angular Velocity on all X, Y and Z axis; these coupled with the Applied Force Should mean that you DO NOT need to make a physics bubble to accelerate the bike & rider to the speed previously - if you apply these values to the bike and rider, they should just "be there".

    EDIT: Oh, I see someone already beat me to it...

    Also, if you go back and have a look at vid #22: Bike & Rider Events (4:00), When Shogun looks at Reset To Driving Line, the bottom of the screen shows that if you hit Y button, you can pull the DL Index from a Data Source. This would effectively mean that we can drop the whole 'multiple check points in the same location but on different laps' thing along and just use the driving line index. There is only one thing that will make this a little tricks - mathematically anyway.

    As the Driving Line Index is a 0 to 100 percent number (i.e. setting a value 82 being 82% of the way through the track), you need some basic maths to determine a percentage location with reference to overall track length. Length is easy if you just place a spline at the finish line, it has the length in metres from the first spline. Lets say track is 500M and the teleport is at 490M. You would need to do the following:

    Object Position / Total Track Length * 100
    490 / 500 * 100 = 98%
    Do all this dynamically in game, save to a variable data source, then reference that from the Reset To Drive Line feature.


    Originally Posted by pahapertti
    The bike actually loses it's velocity when you reset it to a point on the driving line. So you'll have to set your bike's speed to a data source at the moment you hit the spawn trigger and then use it to determine the amount of force you need in the exit portal. Getting the force to feel "natural" will probably be quite challenging, but otherwise there should be no problems. And yes, the invulnerability is probably good to be switched on for that moment when the force kicks in.

    We did some tests with this sort of idea a while back, but it was a bit too late to add it to any of the in-game tracks.
    Forgive me for questioning the almighty but if you watch the Bike and Rider tute video again, why, with Reset Physics disabled, would the rider loose velocity? Wouldn't the velocity be an engine physics function? When the rider goes through and gets sent back during a bailout he keeps his velocity, why not when he is not bailed out?
    Share this post

  2. #52

    Re: 2 Drive line to different path questions.

    Originally Posted by AussieNufMan
    Also, if you go back and have a look at vid #22: Bike & Rider Events (4:00), When Shogun looks at Reset To Driving Line, the bottom of the screen shows that if you hit Y button, you can pull the DL Index from a Data Source. This would effectively mean that we can drop the whole 'multiple check points in the same location but on different laps' thing along and just use the driving line index.
    Agreed. Probably better than the reset to checkpoint option.
    There is only one thing that will make this a little tricks - mathematically anyway.
    <snip mathematics>
    Messy math not necessary. Just use the "Object Information" data source, with the "Drive Line Position" type (see video 22, at 4:14) to read the driveline position directly from an object you've placed at your target location. Then feed that value into the "Reset to Driveline" event.

    Originally Posted by AussieNufMan
    Originally Posted by pahapertti
    The bike actually loses it's velocity when you reset it to a point on the driving line. So you'll have to set your bike's speed to a data source at the moment you hit the spawn trigger and then use it to determine the amount of force you need in the exit portal. Getting the force to feel "natural" will probably be quite challenging, but otherwise there should be no problems. And yes, the invulnerability is probably good to be switched on for that moment when the force kicks in.

    We did some tests with this sort of idea a while back, but it was a bit too late to add it to any of the in-game tracks.
    Forgive me for questioning the almighty but if you watch the Bike and Rider tute video again, why, with Reset Physics disabled, would the rider loose velocity? Wouldn't the velocity be an engine physics function? When the rider goes through and gets sent back during a bailout he keeps his velocity, why not when he is not bailed out?
    Yes, that was my feeling, too. That unchecking the "Reset Physics" would take care of this problem, and we wouldn't have to worry about this saving/applying momentum thing. I'd love to get confirmation.
    Share this post

  3. #53

    Re: 2 Drive line to different path questions.

    Originally Posted by MegaTrain
    Messy math not necessary. Just use the "Object Information" data source, with the "Drive Line Position" type (see video 22, at 4:14) to read the driveline position directly from an object you've placed at your target location. Then feed that value into the "Reset to Driveline" event.
    But the thing is that the Reset To Drive Line is a percentage of whole track and the Object Info data source I think is distance from start in metres. So for a 1000m track, 1% is 10m from start point. If you are resetting to a point that is lets say 550m from start, you need to place '55' in the Drive line location - not the distance in metres, but the percentage of distance traveled between start and finish......

    ....I think.....

    Also, basic percentage maths like that isn't messy. Wait until you need to start using Trig in this thing!! Sin, Cos, Tan, Damn Etc... You could, if you wanted, make a FPS that operates a Howitzer that shoots a Mock up scientific calculator....That actually works!!

    ....Hehe.... I might do this just so I can enter 55378008, then use a trigger to turn the calculator upside down to spell BOOBLESS
    Share this post

  4. #54

    Re: 2 Drive line to different path questions.

    Originally Posted by MegaTrain
    Yes, that was my feeling, too. That unchecking the "Reset Physics" would take care of this problem, and we wouldn't have to worry about this saving/applying momentum thing. I'd love to get confirmation.
    Yes. Confirmation Please.....
    Share this post

  5. #55

    Re: 2 Drive line to different path questions.

    Originally Posted by AussieNufMan
    Originally Posted by MegaTrain
    Messy math not necessary. Just use the "Object Information" data source, with the "Drive Line Position" type (see video 22, at 4:14) to read the driveline position directly from an object you've placed at your target location. Then feed that value into the "Reset to Driveline" event.
    But the thing is that the Reset To Drive Line is a percentage of whole track and the Object Info data source I think is distance from start in metres. So for a 1000m track, 1% is 10m from start point. If you are resetting to a point that is lets say 550m from start, you need to place '55' in the Drive line location - not the distance in metres, but the percentage of distance traveled between start and finish......
    Well, less than 36hrs before we can know for sure, but I can't imagine they'd use different units, it would only make sense to be consistent within the editor. If conversion is necessary, then we can do it, but I'd be surprised if it was.
    Share this post

  6. #56

    Re: 2 Drive line to different path questions.

    Originally Posted by MegaTrain
    That unchecking the "Reset Physics" would take care of this problem, and we wouldn't have to worry about this saving/applying momentum thing. I'd love to get confirmation.
    Didn't Shogun say that if you uncheck "reset physics" then once the rider bails he stays bailed? That could throw a spanner in the works
    Share this post

  7. #57

    Re: 2 Drive line to different path questions.

    Originally Posted by MegaTrain
    Originally Posted by AussieNufMan
    Also, if you go back and have a look at vid #22: Bike & Rider Events (4:00), When Shogun looks at Reset To Driving Line, the bottom of the screen shows that if you hit Y button, you can pull the DL Index from a Data Source. This would effectively mean that we can drop the whole 'multiple check points in the same location but on different laps' thing along and just use the driving line index.
    Agreed. Probably better than the reset to checkpoint option.
    There is only one thing that will make this a little tricks - mathematically anyway.
    <snip mathematics>
    Messy math not necessary. Just use the "Object Information" data source, with the "Drive Line Position" type (see video 22, at 4:14) to read the driveline position directly from an object you've placed at your target location. Then feed that value into the "Reset to Driveline" event.

    Originally Posted by AussieNufMan
    Originally Posted by pahapertti
    The bike actually loses it's velocity when you reset it to a point on the driving line. So you'll have to set your bike's speed to a data source at the moment you hit the spawn trigger and then use it to determine the amount of force you need in the exit portal. Getting the force to feel "natural" will probably be quite challenging, but otherwise there should be no problems. And yes, the invulnerability is probably good to be switched on for that moment when the force kicks in.

    We did some tests with this sort of idea a while back, but it was a bit too late to add it to any of the in-game tracks.
    Forgive me for questioning the almighty but if you watch the Bike and Rider tute video again, why, with Reset Physics disabled, would the rider loose velocity? Wouldn't the velocity be an engine physics function? When the rider goes through and gets sent back during a bailout he keeps his velocity, why not when he is not bailed out?
    Yes, that was my feeling, too. That unchecking the "Reset Physics" would take care of this problem, and we wouldn't have to worry about this saving/applying momentum thing. I'd love to get confirmation.
    You don't need messy mathematics. Simply take your last spline point's and your spawn point's distance on the driving line. Then divide spawn point distance with last spline point distance and multiply by 100.

    Even with Reset Physics off it still gets rid of the bike velocity when you have not bailed out. It's of course not optimal, but that's the way it is. Who knows, maybe a possible future update could fix it.
    Share this post

  8. #58

    Re: 2 Drive line to different path questions.

    So we have found something that is not possible in the Evo editor?
    That's it, Evo is only getting a 1 out of 10 from me!
    Share this post

  9. #59

    Re: 2 Drive line to different path questions.

    Heh, interesting dicussion

    Player event reset to drivingline/checkpoint was not designed to work as a portal, but yeah, you could possible fake the behavior somehow. The main problem is that resetting always resets the bike in the ground, and the starting velocity is always zero (unless you have bailouted before).
    Share this post

  10. #60

    Re: 2 Drive line to different path questions.

    Originally Posted by Johannes
    Heh, interesting dicussion

    Player event reset to drivingline/checkpoint was not designed to work as a portal, but yeah, you could possible fake the behavior somehow. The main problem is that resetting always resets the bike in the ground, and the starting velocity is always zero (unless you have bailouted before).
    What if you stopped the rider'/bike's physics then reset to CP, then reactivated rider/bike physics with momentum? Or would the CP reset nullify the rider/bike momentum anyway?
    Share this post