Comments (2)
@holdwl2016 did you ever find a proper way to do this? I've stumbled on to the same exact issue.
My current not-so-great workaround for this is to do a one-time scaling of the geometry to match the desired mesh scale value. You can do this in your case by calling data.scale(0.01, 0.01, 0.01)
or nodes.LOD3spShape.geometry.scale()
once with the desired scale before passing the data to useTrimesh()
. FYI, scale() mutates the original data, so take that into account.
See for more information about the scale method on BufferGeometry.
from use-cannon.
thank you
from use-cannon.
Related Issues (20)
- Can't show in android browser. HOT 1
- CCD / Continous Collision Detection Enable HOT 3
- useCannon/usePhysics hook to get world state HOT 1
- docs: broken examples url
- Add body existence check in step function HOT 7
- Is it possible to use cannon-worker-api with vanilla cannon-es? HOT 1
- GET http://127.0.0.1:5173/node_modules/.vite/deps/@react-three_cannon.js?v=78dbe0b1 net::ERR_ABORTED 504 (Gateway Timeout) HOT 2
- Jest cannot find module '@react-three/cannon' HOT 4
- InstanceMesh Performance Issue
- Detect collision between two kinematic objects HOT 3
- Can't use react-cannon with other libraries
- Deprecated function example
- Circle and Cylinder sinks into Plane HOT 1
- Doesn't work with Remix.run
- Convex collider hit another convex collider makes the screen froze
- mesh controlled by useBox doesn't respect its parent group tag properties
- Android browser compatibility lower than Chrome80 HOT 1
- Can't set amount of segments for shapes within compoundBody
- Suggestion: 'Inverted Collider' Option HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from use-cannon.