three.js & rapier3D - Character Terrain Movement

Поділитися
Вставка
  • Опубліковано 3 жов 2024

КОМЕНТАРІ • 38

  • @lorenzomonacelli
    @lorenzomonacelli 2 роки тому

    This was a really usefull tutorial. Quick and simple (without losing hours on details like setup of the editor)!

  • @brando8314
    @brando8314 Рік тому

    Every time I hear the word 'rapier' I think of that Harvey Birdman episode

  • @wanderkeule8703
    @wanderkeule8703 Рік тому

    Very nice and useful tutorial. I was playing a bit around but had a problem with the example at 3:04 in line 80. From my understanding the world.createCollider(...) function uses a colliderType and a rigidBody, not a rigidBody.handle.🤔
    But overall still a very great video with very good explanation!

  • @OpisCossack
    @OpisCossack Рік тому

    great stuff

  • @wshacode7179
    @wshacode7179 2 роки тому +2

    hello there please make a special video about virtual tour like entering a museum and walk through rooms and put hop spots to know information about the things in there , it will be so use full at all

  • @GauravSharma-ij1ym
    @GauravSharma-ij1ym 11 днів тому

    The controls W A S D disappear in full screen mode

  • @RafaelSales55
    @RafaelSales55 8 місяців тому

    Thank you ! By the way, in 3:00, why you're multiplying BoxBufferGeomeTry by two?

  • @GauravSharma-ij1ym
    @GauravSharma-ij1ym 8 місяців тому

    Thanks for that great tutorial.. But the character is not colliding with static body right now, infact it is going inside the static body.. Any helps that i can get here?

  • @Cat_trot2333
    @Cat_trot2333 2 роки тому +1

    nice video bro ! can you show how to create a convexMesh with the model ?

  • @losrobbosful
    @losrobbosful 2 роки тому +1

    Very inspirational video, as always. Thanks a lot :)
    One question though: In a previous video you showed how to use Enable3D to create 3D objects with physics quite easily.
    Why you chose Rapier over Enable3D for this demo? Is it the performance?

    • @heygenka
      @heygenka  2 роки тому +4

      I wanted to try something new. Enable3D is basically a wrapper for three.js and ammo.js physics. Rapier is relatively new and it seems very userfriendly in comparison to ammo.js so I gave it a try.

    • @losrobbosful
      @losrobbosful 2 роки тому +1

      @@heygenka Makes sense, thank you 👍

  • @softwax1
    @softwax1 Рік тому

    Thanks for the great tutorial. It was a very good inspiration for me. Is it possible to reproduce the same thing only with reac-three/rapier?🤔

  • @neiltolentinoytvlogs554
    @neiltolentinoytvlogs554 Рік тому

    This is cool, what game engine is this?

  • @bencodes
    @bencodes Рік тому

    This is an amazing tutorial thank you so much for sharing! I’m really struggling to figure out how to create a terrain from a GLTF file. I have buildings, a river and a bridge in a file but I have no idea how to make that .gltf file the terrain ground / make the character walk on top of it! I’d really appreciate any help, thank you!

  • @abs19971
    @abs19971 Рік тому

    It's a very nice tutorial. Would you please tell me if l want to stop my character once object is found, what changes do l have to make in code?

  • @subzero2971
    @subzero2971 Рік тому

    Hi there thank you for these tutorial
    I have a question how can I make button on the object like car door or window when I click on car door call a function i made before ???
    And thank you again ❤❤

  • @abs19971
    @abs19971 Рік тому

    Hey genka,would you please add joystick in this for movement, not able to find any solution. Please help l need urgently

  • @bydezign9441
    @bydezign9441 2 роки тому

    Very cool, why not use a dynamic body for the player object so you can use the same collider logic?

    • @lorenzomonacelli
      @lorenzomonacelli 2 роки тому

      I think it is because then the player could rotate when colliding, which is not what you usually want

  • @martirosyanara
    @martirosyanara 9 місяців тому

    @heygenka This video and the channel in general has been really inspirational for me and I want to give some credits to it for what I have achieved by just following this tutorial and the one in another video of yours with three-nebula particle system
    ua-cam.com/video/Rd5wTcU2vGg/v-deo.html

  • @nipunjain1142
    @nipunjain1142 2 роки тому

    Hi, Do you have separate detailed course on three.js?

  • @CigerPro
    @CigerPro Рік тому

    Great work! Its seems rapier js not have debug renderer. Is it true?

    • @heygenka
      @heygenka  Рік тому

      rapier3d is a physics library without any rendering capabilities

  • @HuynhLuong227
    @HuynhLuong227 Рік тому

    i want ask you a question, why you use rapier3D then not use cannonjs?

    • @heygenka
      @heygenka  Рік тому +1

      because rapier3d was easier to learn and start with, it has some good documentation

    • @HuynhLuong227
      @HuynhLuong227 Рік тому

      @@heygenka ah, very thanks for you recommened

  • @spherevsgravity
    @spherevsgravity 9 місяців тому

    Is Threejs alone not enough to that purpose ?

    • @heygenka
      @heygenka  9 місяців тому

      threejs does not have physics simulations, if that is what you mean

    • @spherevsgravity
      @spherevsgravity 9 місяців тому

      what about octree plugin@@heygenka

    • @spherevsgravity
      @spherevsgravity 9 місяців тому

      @heygenka
      look at fps_game in the threejs examples

  • @ttyu1999
    @ttyu1999 8 місяців тому

    3:02 To generate physical effects, it is necessary to remove ".handle"; otherwise, the physical effects will not be produced.
    world.createCollider(colloderType, rigidBody.handle);

    world.createCollider(colloderType, rigidBody);

  • @wolfgangouille
    @wolfgangouille 2 роки тому

    Is this better than the bullet engine ?

  • @MrKeyKay
    @MrKeyKay 2 роки тому

    Sehr interessant was du da baust. Können wir mal sprechen?

  • @martirosyanara
    @martirosyanara 2 роки тому

    Thank you so much for sharing your code with us. I tried to reproduce it by installing the latest stable version of @dimforge/rapier3d (yours is the alpha.2) and I stumbled upon problems, the rigid bodies do not fall unless you explicitly assign a mass .setAdditionalMass(m); and then they pass through the terrain without bouncing back I tried all the methods to make them collide again without success. I would appreciate very much if you give me a hint, what to do to prevent bodies falling through the terrain. I don't get what did they change in their api in the newest version. thanks again for your work. I learnt a lot.

    • @misakidoma7237
      @misakidoma7237 2 роки тому

      hello, I don't know if you read it but I had a problem that I don't know what is due to when trying the code:
      A module from “localhost/dashboard/test/src/index.ts” was blocked from loading due to an illegal MIME type (“”).
      I don't know if someone could help me or tell me what could have happened to get this error.

    • @martirosyanara
      @martirosyanara 9 місяців тому

      @@misakidoma7237 No clue man I didn't use webpack, I used vite instead.