I am trying/learning to create a breakout 2D game with UE4, but my first steps with it was not that successful so far... so i have a few questions:
1.) How do i apply an impulse in a specific direction to a ball (Unit vector + Magnitude) actor by using blueprints?
My current approach does not work very well, because it does not bounce off the wall, see the blueprint for the ball:

In other physics engine, i just do "ApplyImpulse" or something like that and the ball starts spinning, or set the InitialVelocity.
2.) Why can“t i access the velocity from the balls blueprint? Is there some special stuff needed?
3.) How do i set a custom gravity for specific actors?
4.) How do i add a force and torque to a actor?
5.) How do i change the physics body from static to dynamic and vice versa while the game is running?
Thanks in advance,
Finalspace
1.) How do i apply an impulse in a specific direction to a ball (Unit vector + Magnitude) actor by using blueprints?
My current approach does not work very well, because it does not bounce off the wall, see the blueprint for the ball:
In other physics engine, i just do "ApplyImpulse" or something like that and the ball starts spinning, or set the InitialVelocity.
2.) Why can“t i access the velocity from the balls blueprint? Is there some special stuff needed?
3.) How do i set a custom gravity for specific actors?
4.) How do i add a force and torque to a actor?
5.) How do i change the physics body from static to dynamic and vice versa while the game is running?
Thanks in advance,
Finalspace
Comment