Comments (2)
Note for anyone following this or who has the same issue - I added my own temporary fix. The issue stems from the body aabb not updating due to it being either static or sleeping obviously (aabbNeedsUpdate is false), so the aabb is wrong when the raycaster interacts. I fixed it by adding another aabb (ghostabb) to Body class that does update for the sleeping/static body.
This way we can do the raycast against Body.ghostabb, and leave the real aabb as normal
from cannon-es.
Note for anyone following this or who has the same issue - I added my own temporary fix. The issue stems from the body aabb not updating due to it being either static or sleeping obviously (aabbNeedsUpdate is false), so the aabb is wrong when the raycaster interacts. I fixed it by adding another aabb (ghostabb) to Body class that does update for the sleeping/static body.
This way we can do the raycast against Body.ghostabb, and leave the real aabb as normal
Can u share your code? I don't understand
from cannon-es.
Related Issues (20)
- getVelocityAtWorldPoint() requires result parameter, despite returning result HOT 1
- Documentation for vectorToWorldFrame() incorrect
- Unknown Force is applied on some vertically stacked cubes on straight plane? HOT 4
- What are indices parameters of CANNON.Trimesh function?
- I added a model, I don't know why there is no physical characteristics
- About the basic parameter units of RaycastVehicle in canon-es
- ConvexPolyhedron isn't working for certain vertices
- The sphere flies away after a few seconds while the tab is not active HOT 1
- Implementation of third person controller. How to prevent character from rotating when moving at an angle to an incline HOT 1
- Event `collide` is only thrown once when stacked objects enter trigger HOT 1
- Make code with examples more accessible
- why the fixed body position is updated? HOT 1
- How to know when world.raycastAll has fully resolved HOT 1
- Request for Soft Body Physics Feature in Cannon-es HOT 2
- Collisions not working consistently with convex polyhedrons
- My ground is Trimesh, and the character is Sphere. The collision result is not very normal
- Weird collision between plane and complex polyhedron HOT 1
- Raycast with Ray.intersectBodies only hits first in array
- Material on shapes seems to be ignored
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 cannon-es.