Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    3D - Collision Detection approaches?

    Help
    3
    5
    354
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tratax
      Tratax F last edited by Tratax

      Today I had some more spare time and decided to have a go at making something in 3D.. After a lot of practice in the 2D world i'm really happy with how it's going..

      I'm wanting to move into collision detection only on the Y plane next working with only two objects

      • The player object ( the robot )
      • The 3D world object ( the racetrack model )

      My goal is to have some sort of height mapping check that does something like the following:

      • Get the players current Y position
      • Capture the height difference between player position and another position within the X,Z range (from the single model only)
      • Adjust the player Y position as the landscape height falls and climbs within the desired collision detection test range

      What i've been ive thinking so far:

      • Accept the fact that i'll need to create lots of collision detection shapes and use them (not sure how i'd do slopes though!)
      • Use distance() and compare only on the Yplane between the two objects?

      Appreciate any suggestions!

      B 1 Reply Last reply Reply Quote 6
      • Kat
        Kat Fuze Team last edited by

        Fantastic! It's so cool to see more 3D stuff being worked on, though I'm somewhat biased haha! Just wish I had some suggestions for collision :S Looking forward to seeing how this develops :D

        Tratax 1 Reply Last reply Reply Quote 0
        • B
          Bl4ckM4ch1n3 @Tratax last edited by

          @Tratax said in 3D - Collision Detection approaches?:

          What i've been ive thinking so far:

          • Accept the fact that i'll need to create lots of collision detection shapes and use them (not sure how i'd do slopes though!)
          • Use distance() and compare only on the Yplane between the two objects?

          Appreciate any suggestions!

          I'm not a hundred percent sure about my idea (I never had anything to do with 3D collisions), but if you need to go up/down slopes you'll need to check the front end and the back end of your model.
          You'll be able to calculate the necessary angle for your model. See figure 1 & 2.

          But of course this leads to your track collisioning with your model when you're driving up/down slopes with one end on the slope and one end off the slope as shown in figure 3. But I guess this is negligible as your model is not that "long"

          3D.png

          I hope this helps!

          Tratax 1 Reply Last reply Reply Quote 0
          • Tratax
            Tratax F @Kat last edited by

            Hey @Kat ! Thanks for the great work on the assets, the single model file and the included SIN/COS help examples made putting this togther a lot easier so thank you!

            I'm working on animations and creating some objects for the robo character to interact with next :)

            Are you planning to include any new models into upcoming fuze releases?

            1 Reply Last reply Reply Quote 0
            • Tratax
              Tratax F @Bl4ckM4ch1n3 last edited by

              Thanks @Bl4ckM4ch1n3 , Great suggestion - I like the idea of tilting the robot as it moves up and down a plane too!

              Working on this today so I'll hopefully have some progress to share :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post