three.js & rapier3D - Character Terrain Movement

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025
  • НаукаНаука

Комментарии • 41

  • @itomatik
    @itomatik Месяц назад

    Without this my son would't have a GAME!!!!!!! :)

  • @lorenzomonacelli
    @lorenzomonacelli 2 года назад

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

  • @RafaelSales55
    @RafaelSales55 Год назад

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

  • @GauravSharma-ij1ym
    @GauravSharma-ij1ym Год назад

    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?

  • @brando8314
    @brando8314 2 года назад

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

  • @Cat_trot2333
    @Cat_trot2333 2 года назад +1

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

  • @ThePapanoob
    @ThePapanoob 2 месяца назад

    Why didnt you just use the dynamic rigidbody?

  • @abs19971
    @abs19971 Год назад

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

  • @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?

  • @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!

  • @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?🤔

  • @nipunjain1142
    @nipunjain1142 2 года назад

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

  • @OpisCossack
    @OpisCossack 2 года назад

    great stuff

  • @subzero2971
    @subzero2971 2 года назад

    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 ❤❤

  • @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

  • @neiltolentinoytvlogs554
    @neiltolentinoytvlogs554 2 года назад

    This is cool, what game engine is this?

  • @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

  • @wolfgangouille
    @wolfgangouille 2 года назад

    Is this better than the bullet engine ?

  • @GauravSharma-ij1ym
    @GauravSharma-ij1ym 3 месяца назад

    The controls W A S D disappear in full screen mode

  • @spherevsgravity
    @spherevsgravity Год назад

    Is Threejs alone not enough to that purpose ?

    • @heygenka
      @heygenka  Год назад

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

    • @spherevsgravity
      @spherevsgravity Год назад

      what about octree plugin@@heygenka

    • @spherevsgravity
      @spherevsgravity Год назад

      @heygenka
      look at fps_game in the threejs examples

  • @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 👍

  • @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

  • @SimonSt-l2f
    @SimonSt-l2f 3 месяца назад

    (vertices as any)[i + 2] = scale.y * randomHeight*1.1; //to bring terrain a lit closer to the feet

  • @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

  • @bencodes
    @bencodes 2 года назад

    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!

  • @ttyu1999
    @ttyu1999 Год назад

    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);

  • @martirosyanara
    @martirosyanara Год назад

    @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
    ruclips.net/video/Rd5wTcU2vGg/видео.html

  • @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 Год назад

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