Comments (2)
Hi all, I started working on this concept with this branch: https://github.com/krispya/cannon-es/tree/exp/scaling
I have a proof of concept working which you can see with the 'Scaling' demo I added to examples. Right now the proof of concept only scales spheres and boxes, but I was curious what people thought before I made it more robust.
The main motivation for me to add this is to get easier interoperability between three and cannon-es when applying basic args to the mesh and bounding area created by cannon. A common use case for this is use-cannon which encourages sharing props between them. This turns the process into a single method call or as simple as setting an option on construct.
The main concern is this gets close to violating the rigid body contract. Schteppe wanted to enforce this by making users destroy and create a new body when they wanted to change its dimensions. For me, I thought it was enough to make scale update on set in the render loop like position and quaternion do, but instead have its own updateScale method much like updateAABB or other costly functions.
from cannon-es.
Updated to work with Complex Polyhedron and Cylinder now. I didn't bother touching Heightfield and Trimesh until there is more of a conversation. Trimesh has a local scale property and method which might be better than how I am handling it on shapes right now.
from cannon-es.
Related Issues (20)
- when two bunny collide,my browser stuck,is there any way to make it behave smoothly HOT 5
- Deprecate fixedStep from World HOT 6
- Is it possible to import Cannon ES just like Cannon JS HOT 1
- how can i flip faceNormals? HOT 1
- Please, add Debug Drawer HOT 18
- Fixing the local axes orientation of an exported gltf model to get the correct quaternion coordinates
- Calling getVelocityAtWorldPoint yields Uncaught TypeError: worldPoint.vsub is not a function
- how to find a constraint ?
- console.log on ConvexPolyhedron.ts
- Orientation of a body HOT 1
- Chaining Hinges behaviour
- [ Question ] Spheres going through body with mass equal zero
- penetrate explosion
- The movement of a spinning ball in cannon js has an unexpected deviation that depends on the direction of the movement itself
- can anyone help me about using webpack to use it in one js file ?
- Documentation question: After getting the red box wireframe working, and want to get gray boxes bouncing...
- ConvexPolyhedron: Tetrahedron working vs. not working HOT 3
- DisableMotor() method does not work in HingeConstraint. HOT 1
- RaycastVehicle: We have twice call updateWheelTransformWorld in updateWheelTransform(from updateVehicle) and then in castRay
- How can I get a list of bodies touching the line between two vectors?
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.