1. #1

    Physics on hit

    Hi, was just wondering how you make the physics joint work where once the bike lands on the object (log piece) it falls down 30 degrees or so and stays there.
    Share this post

  2. #2
    LukeMSki's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,326

    Re: Physics on hit

    Just use a Hit Trigger Hitting Object 1: Bike and Rider; Hitting Object 2: Log; On Hit: Physics Event -> Log (Note: Make sure the log has physics disabled to begin with.)
    Share this post

  3. #3

    Re: Physics on hit

    sorry should of been more clear, i mean how do i make the physics joint go at the specific angle i want and where it stops.
    Share this post

  4. #4

    Re: Physics on hit

    Try this for fun. Do as luke said but set the angle damp on the log to 99 then have a trigger where to want the log to stop using physics off.
    Share this post

  5. #5

    Re: Physics on hit

    Originally Posted by aLeXeLa
    sorry should of been more clear, i mean how do i make the physics joint go at the specific angle i want and where it stops.
    You have a few options. One is mentioned above but there are two more.

    The easiest method is to place a custom collision where you want the log to stop which prevents the log from rotating any further. This can cause another problem if your bike is able to come into contact with the custom collision, but if not it might be your best bet.

    Another option is to open up the angular properties of the rotational hinge and restrict the angle to 30 degrees by moving the sliders. It can be a bit fiddly to do but it doesn't involve any other items like custom collisions or physics events.
    Share this post

  6. #6

    Re: Physics on hit

    Is that how its done on the 'pump it up' level, cause that is what im kinda after.
    Share this post

  7. #7

    Re: Physics on hit

    Also, rather than starting a new thread, i have another idea i'd like to ask help with.
    Im thinking of a special trap to make on my track, where on touch to a rope, the bike and rider sticks to it and lifts you up hanging you upsidedown in the air having been caught.
    Share this post

  8. #8
    Blastergamer's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Rocking Trials Country
    Posts
    2,539

    Re: Physics on hit

    Originally Posted by aLeXeLa
    Also, rather than starting a new thread, i have another idea i'd like to ask help with.
    Im thinking of a special trap to make on my track, where on touch to a rope, the bike and rider sticks to it and lifts you up hanging you upsidedown in the air having been caught.
    You can try to use a directional force pointing to the rope, or use something to block the bike.
    Share this post

  9. #9

    Re: Physics on hit

    Use a point to point physics joint between the bike and the rope but leave it disabled. On contact with the rope use a state event to enable the joint.
    Share this post