Jump to content

How to use pep.js in React


Recommended Posts

Hello guys,

More questions regarding using Babylon with React.

How do I use pep.js for Babylon in React?

I understand that pep.js enable pointer events on touch devices, and without it the drag, pinch and other touch interactions won't work.

I already 'npm i pepjs'. What is the next step? Where should I import it or use it?

The basics are done following the doc: https://doc.babylonjs.com/resources/babylonjs_and_reactjs

Maybe I also try calling our React Master @brianzinn:D

Thanks a lot!

PS: There is a solved issue regarding loading assets with create-react-app if anyone is interested:


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...