Launch a object

Hello, this is my code,


basically it picks up a physics object and moves with the player, and when the player releases the input it drops

it, how can i make it throw/ launch instead of drop?

Thank you

Add an impulse to a single rigid body. Good for one time instant burst.

Add a force to a single rigid body. This is like a ‘thruster’. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

There’s also the Projectile Movement Component (PMC) it’s specifically designed for thrown/shot projectiles.

Have you tried using the “launch” function?

Launch is a “Character Movement Component” function. It can only be used to “Launch” Characters that use CMC.

I know, but would it be unethical to add a CMC to this object class? Or is the projectile movement comp better optimized their this?

PMC is a lot better… by far.

1 Like