I have a cells array of white circles. Every world.step or so, I want to change one random circle to red. I can access and change the color of the cir ...
I have a cells array of white circles. Every world.step or so, I want to change one random circle to red. I can access and change the color of the cir ...
I'm doing a simple project with Physics.JS and I want to be able to add text to a PhysicsJS World. I looked in the documentation but I couldn't find s ...
How should the findOne method be properly used? (http://wellcaffeinated.net/PhysicsJS/docs/#Physics-world-prototype-findOne) This code returns the er ...
I'm learning PhysicsJS, and I tried using union like so: but the ball just falls through the bottom. Physics(function(world){ var vi ...
I've been experimenting with attractors in physics.js, rigging up a simple object in zero gravity, with an attractor at a point. This creates a great ...
I was able to move a body to an specific point by changing its state.pos AND its state.old.pos. But it seems to lose its velocity (and acceleration I ...
I'm searching for a way to use sensors in a mobile device (in a Cordova app) to change the behavior of the physics engine. Currently playing around wi ...
I am trying to include a modular third-party library (PhysicsJS) into my webpack project. This library is AMD- and CommonJS-friendly, and has well-for ...
I'm using the edge-collision-detection behavior to add collisions with the edge of the viewport, and the body-impulse-response behavior to respond to ...
Here's a weird one that I've been wracking my brain on. I want to do two things, in order: Generate a masonry-style layout from a list of divs, i ...
I was trying to make a table tenis type game in which I want to make the rectangle in the body to be fixed at that location act as a wall , but when ...
I'd like to know if there's a way to get and set the scale of a physicsjs body and have the bitmap assigned to the view of the body scale with it. I s ...
I'm looking for the best practice approach to stop PhysicsJS bodies from being able to rotate. I have tried cancelling the body's rotational velocity. ...
I'd like to create a sequence of letters that can be broken apart. Ideally I'd only load one spritesheet to generate the views of the different letter ...
My behaviors on initialization are added as follows: I'd like to, at a later time, remove the "constant-acceleration" behavior. I read a couple of ...
After collision of 2 dots i want they make 1 dot with double radius so my code Radius doesn't change and sometimes strange behavior that 2 dots dis ...
I've got this simple js: Physics(function( world ){ //Defining object var renderer = Physics.renderer('canvas', { ...
I'm trying to make a custom behavior and I'm not very familiar with physicsjs. According to the docs in github I'm supposed to use var bodies = this.g ...
I'm trying to get the basic demo going for PhysicsJS but I'm getting results that I do not understand. I have a one page HTML file as follows... ...
Is it possible to remove a Behavior for a specific Body after already being added it to the world? For example, you have a tank which has been suffere ...