T
Temmy
Guest
Hey folks,
Let's talk physics! At the moment I have a projectile the player can angle and then fire out, which uses physics_apply_impulse() to give it a kick.
Basically I want this shot to rebound and ricochet off surfaces indefinitely but with each rebound it looses some power (confirmed by querying the phy_speed variable on the projectile).
How would I go about ensuring it maintains a constant speed after rebounds? Should I be using a different way of applying its 'force'? Below are it's current physic properties:
Let's talk physics! At the moment I have a projectile the player can angle and then fire out, which uses physics_apply_impulse() to give it a kick.
Code:
//make the arrow move
var dir = point_direction(x, y, mouse_x, mouse_y)-180;
physics_apply_impulse(x, y, lengthdir_x(50, dir), lengthdir_y(50, dir));
Basically I want this shot to rebound and ricochet off surfaces indefinitely but with each rebound it looses some power (confirmed by querying the phy_speed variable on the projectile).
How would I go about ensuring it maintains a constant speed after rebounds? Should I be using a different way of applying its 'force'? Below are it's current physic properties:
Last edited by a moderator: