ErdongChen-Andrew / CharacterControl

Floating Capsule Character Controller (Rigibody control)
https://character-control.vercel.app
MIT License
378 stars 52 forks source link

Example folder does not work, and no repo for working example #10

Closed Seanmclem closed 7 months ago

Seanmclem commented 7 months ago

The example folder in the repo, has some paths that don't resolve properly, and doesn't have a package.json, so you can't really run it anymore. Also, this example doesn't seem to have a repository to look at.

ErdongChen-Andrew commented 7 months ago

To run the example app, you'll need to clone the entire repository since the package.json is located outside the example folder. Follow these steps, and you should be able to run the playground example:

// Install dependencies (only the first time)
npm install

// Run the local server at localhost:5173
npm run dev

// Build for production in the example/exampleDist/ directory
vite build -c vercelVite.config.js
Seanmclem commented 7 months ago

Thanks, I thought I tried that but definitely not. Pretty unrelated, but I do have one more question. Any idea why my reimplementation of that exact scene in this codesandbox turns out so much darker and such?

from this repo.

Seanmclem commented 7 months ago

like this

Screen Shot 2023-11-25 at 5 42 57 PM
ErdongChen-Andrew commented 7 months ago

Try with different versions of three and r3f. I encountered a similar issue with the latest version of threejs. This won't affect the controller's functionality