python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Matter.js no collision after you change Engine.world to other world
So I`m making a game and decided to make switchable game scenes.
I have one instance on Matter.Engine where I switch world param when to world parameter of current scene.
So in class "App" i...
PING_LORD
Votes: 0
Answers: 1
How to change the texture of a body after the body is created in matter js?
I have added a body called testObj to the world like this
const testObj = Bodies.rectangle(200,200,40,40,)
World.add(engine.current.world, [
Bodies.rectangle(cw/2, 0, cw, 20, { isStatic: true }),
...
Tharusha Jayasooriya
Votes: 0
Answers: 1
How do physics engines model angular velocity and angular acceleration (in 3D)
I have been looking around for answers to this question and I can't find a straight answer.
It seems the word online is that angular velocity is stored as a vector, where the direction is the axis of ...
david warford
Votes: 0
Answers: 2
How would an object bounce if you throw it into a corner directly
I don't think you can do this in real life because of engineering issues. But in a physics engine, if you throw a ball into a corner(both inwards and outwards). How would the object bounces, directly ...
RealNoobProgrammer
Votes: 0
Answers: 1