cannon.js
How in this engine to make a box with initial settings such that the axes of the box coincide with the axes of the world. With each new frame, I rotate the box by a given angle. Now I want to know where this box is to draw it.
I rotate the new frame again by the angle I will give.
init = function()
world = new CANNON.World()
ground = new CANNON.Body(object
mass = 0 // when the mass is set to zero, the object will be static
shape = new CANNON.Plane()
end)
world.addBody(ground)
box = new CANNON.Box( new CANNON.Vec3(5, 15, 30))
world.addBody( box )
end