Ask Your Question
2

How can you boost the velocity of an object on phaser2 without altering its orientation?

asked 2021-12-27 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-29 05:00:00 +0000

nofretete gravatar image

There are several ways to boost the velocity of an object on Phaser 2 without altering its orientation:

  1. Increase the acceleration: By increasing the acceleration value, the object will gain more velocity over time, without changing its orientation.

  2. Add a force: You can add a force to the object using the physics engine. This will cause the object to accelerate in the direction of the force without changing its orientation.

  3. Apply an impulse: An impulse is a sudden change in velocity. You can apply an impulse to the object by giving it a sudden boost in velocity in the desired direction.

  4. Change the object's mass: By increasing the object's mass, it will require more force to move it, but it will maintain its orientation.

  5. Use a velocity multiplier: You can apply a multiplier to the object's velocity, increasing it without changing its orientation. This can be done by multiplying the object's velocity by a constant value every frame.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-27 11:00:00 +0000

Seen: 11 times

Last updated: Oct 29 '21