Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

car tires throw water splashes

Discussion in 'Scripting' started by denisbiris, Jul 31, 2019.

  1. denisbiris

    denisbiris

    Joined:
    Jul 24, 2019
    Posts:
    8
    Hello, how I can create a collision script between car and water when car and water are in collision to activate water splashes (game object) at the wheels only when the wheels of the car are in motion.
    I attached a picture to what I mean, water (water splashes) to jump from the wheels.
    I have been trying for two weeks to do this but I have not succeeded, please help me. Thank you !

    Flowing water is a river is not a plan

    Photo: https://cdn1.imggmi.com/uploads/2019/8/1/165b27fc8ea57f2c4b93c31ead1162d2-full.png

    I would like to get something like this: (only water splash particles, because the waves assume that they cannot be obtained on a river but only on a plan, could be obtain it but it's a lot of work, so I'm pleased with water splashes)

    https://c8.alamy.com/comp/B7PC09/landrover-defender-fording-river-B7PC09.jpg

    My problem is that I don't know how to do scripts so I posted here in the forum, maybe someone can help me
     
    Last edited: Aug 1, 2019
  2. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    Pic not working for me.

    Is the spash a particle system?
    If so just use the emission over distance thingy.
    Could also use a script to check for motion and call "Emit()" on the PS/whatever your using.

    Provide more info about your setup if you want more help
     
    denisbiris likes this.
  3. denisbiris

    denisbiris

    Joined:
    Jul 24, 2019
    Posts:
    8

    Yes , it`s a particle system
    I attached a link with photo
    The problem is that I don't know how to do scripts so I posted here in the forum, maybe someone can help me