Make Object Physics After Colliding

Discussion in 'How Can I...?' started by JSeeger6, Jun 18, 2019.

  1. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
    Hi,

    I'm looking to make an object that doesn't have physics turned on suddenly turn on (and fall from the sky) after colliding with my actor. How might I go about doing this?

    Thanks so much,
    Jacob
     
  2. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    Use the new set Physics node
     
    JSeeger6 likes this.
  3. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
    Thanks so much!! And is it possible to change the 3D mesh of the object after colliding as well?
     
  4. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    Yes. Just add another model and hook it up to the if collide. You also need to turn off the original model by hooking it up to the if collide too with an "invert boolean" node in-between
     
    JSeeger6 likes this.
  5. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
    Am I setting this up correctly? So far it doesn't seem to be working:
    Screen Shot 2019-06-19 at 5.30.20 PM.png
     
  6. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
  7. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
  8. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
  9. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    Yep sounds good
     
  10. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
    Also while I have you, and since you've been so helpful, I just have a couple other questions if you have the time!
    1) How can I make the game/character accelerate over time?
    2) How can I have the Main Menu UI be the same as the Game UI? As in, when you open the game the world is active but it isn't until you press a button that the character begins, etc? See pics as a reference!
     

    Attached Files:

  11. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
  12. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
    PunkPuffin likes this.
  13. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
    Hi! So I was just messing around with the template you gave me, which was incredible by the way, and I'm noticing a slight problem if you might have a solution?
    When the character dies and it goes to the Game Over UI, upon pressing the "Restart" button, it goes to the Start UI all over again. Is there a way to bypass the Start UI and go straight to the Game UI after reaching Game Over? Thank you so much.
     
  14. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    I don't think there is that much control over the UI flow
     
    JSeeger6 likes this.

Share This Page