Comments (3)
Liabu hasn't seen issues in months.
I also like batch processing with classes and arrays, but I haven't use Sleeping yet
from matter-js.
Further to the above
originally I created boundaries using the Array push method, but I was unable to delete them using
Matter.Composite.remove(world,bottomWall);
The following was created separately, for it to be removed as per matter.js docs
bottomWall = Bodies.rectangle(width / 2,900, width, 15,{isStatic: true});
Could also be related to #1202 and #1112
from matter-js.
I managed a workaround for my project. Although there is still a problem with #1202 and #1112 as the bodies I am waking have been static for some time and there isn't enough force (from gravity) to get them moving again in some places.
var allBodies = Matter.Composite.allBodies(world);
for (var i = 0; i<allBodies.length; i++) {
//Matter.Body.setStatic(allBodies[i], false);
Matter.Sleeping.set(allBodies[i],false);
from matter-js.
Related Issues (20)
- Create Matter.Bodies.fromVertices with rounded vertices
- MouseConstraint preventing clicks on buttons on mobile. HOT 3
- Vulnerability related to the formula of universal gravitation
- Body with high mass and low inertia behaves erratically
- The startdrag event of dragging a body does not trigger after losing focus.
- How to move camera in matter.js world? HOT 2
- How to use matter.js on a web worker?
- Moving objects penetrate each other. HOT 1
- How to remove the opacity change while using isSleeping option true? HOT 2
- Is it possible to implement sprite looping animation? HOT 1
- How to increase sprite quality? HOT 1
- Circle and svg in one body
- Converting gyroscope values consistently across Android and iOS
- Recalculate COM of a Composite body
- Matter.Body.applyForce function doesn't work in React-Native !!
- Render screen(canvas) vibration error HOT 1
- FromVert bodies are able to rotate though each other.
- Body properties are incorrect after switching from static to dynamic HOT 2
- Any way to make only a part of the screen interactable with mouse?
- Images not loading in react JS HOT 7
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 matter-js.