Adding Permanent Velocity to a Physics Object?

Discussion in 'How Can I...?' started by shaunfal, Oct 1, 2015.

  1. shaunfal

    shaunfal Boxer

    Joined:
    Sep 25, 2015
    Messages:
    16
    Likes Received:
    15
    Yoo Guys,

    So I've been stuck on this all day (beginning to think it's not possible) but before I give up I wanted to check to see if anybody knows how to do it or a work around. I'm trying to give a physics object a velocity so it can move across an uneven ground. The problem I'm having is it only has the velocity for a second then stops (reason I'm guessing is that the friction stops it). I've tried connecting it to a fixed object (which works) but then it doesn't react well to the uneven ground since its fixed. Anybody know any kind of work around? Been trying things all day!

    Just in case my description is a little confusing, what I'm trying to do is move a boat across waves (the ground) when the character jumps on it. This is what happens when the boat is connect to a fixed object (it moves forward but not how id like it to)

    boat.png
     
  2. Jamie

    Jamie Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    382
    Likes Received:
    273
    I am thinking the object connection strategy you tried may not be the way to go. Have you tried setting a wakeup effect for the boat and then maybe using some logic transform blocks in your ocean to spice up how the boat moves?
     
    shaunfal likes this.
  3. Collin Wade Thiessen

    Collin Wade Thiessen Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    291
    Likes Received:
    341
    This video might help you
     
    shaunfal likes this.
  4. stevinz

    stevinz Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    169
    Likes Received:
    142
    I'm with @Jamie on this one, wakeup on collision to set initial velocity. Then have a bunch of logic transforms every so often that continually feed the velocity.

    Its tricky to have a physics object attached to a fixed object. The physics object will continue to bounce around, but only on its axis, as it is set at a fixed distance to a fixed object. You could try to add in blank space to the objects image to move the center point towards the front of the boat. Then the back of the boat would bounce up and down a little better perhaps.
     
    shaunfal likes this.
  5. Jamie

    Jamie Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    382
    Likes Received:
    273
    Do what works. Either way, logic transform blocks might also help if you decide to use ramps or something
     
  6. shaunfal

    shaunfal Boxer

    Joined:
    Sep 25, 2015
    Messages:
    16
    Likes Received:
    15
    Wow awesome, thank you all for the reply's! Gonna keep playing around with it but from what I'm seeing as ideas I feel like its possible! Ill keep you all updated on it! :)
     
    colette_levesque likes this.
  7. shaunfal

    shaunfal Boxer

    Joined:
    Sep 25, 2015
    Messages:
    16
    Likes Received:
    15
    Alright... got it working. I literally put a logic along the entire surface until the boat reached the other side. Its not as smooth as I'd like it to be but good enough (just gives it the illusion that there's some engine problems) Thanks again everyone!
     
    Jamie likes this.
  8. Jamie

    Jamie Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    382
    Likes Received:
    273
    there is smooth sailing and then there is rough sailing -- it is sailing, you know
     
    shaunfal likes this.

Share This Page