hi again Gio. while I have a fuse to deal with the engine I will create themes))
So this time we will talk about the plug-in of physical interactions.
I just want to note that there is nothing in physics at all. no tutorials or documentation
for example, I have a problem-there is a conditional construction that increases the player's speed
if(wade.isKeyDown('up')||wade.isKeyDown('w')){
this.setVelocity(this.getVelosity().x+ delta, this.getVelosity().y)
}
and I want to completely translate it to physics by making a dynamic body
I mean I'm just basically adding momentum or power :
if(wade.isKeyDown('up')||wade.isKeyDown('w')){
this.getBehavior('PhysicsObject').applyForce(some force)
}
but these results are similar to rocket simulators with extremely inertial motion. it would be logical to take away the force / momentum - but there is nothing in the documentation
t..e my goal is to create a completely similar movement as it is in physics-rotation and acceleration, with a slight inertia deviation.,
in other words I need to simulate the movement of a jet object with an engine at the back and very responsive to turns
of course, you can use the force or momentum of the opposite vector when you click the turn or deceleration button - but how to understand where 0 is. In other words-how to get the value of the current forces of the object?
of course I reached into the source code to see something about the force and saw the file wade_src/ physics/forces.js. but I saw something else there-this. particleExplosion. and of course immediately wanted to blow something up - but alas, it did not work. я получаю ошибку что l.getBehavior() не является функцией etc. is there an example -how to blow something up with these functions?