How can I add radial force to actor which uses UProjectileMovementComponent?

anonymous_user_60e2a251
Fri, 30 Nov 2018 08:04:02 +0000
World Creation

Hello, This is my first time posting in this forum so please go easy on me.

I’m making a game which has a bouncing ball in it, I’ve achieved the bounce effect of the ball using the UProjectileMovementComponent now I want to add radial force on the ball when it overlaps my Vacuum.

when I try to use MyProjectile->MyProjectileMovementComponent->AddRadialForce() It does nothing… I’ve been digging around the source and found out that the default implementation of UMovementComponent::AddRadialForce() does nothing as shown here.

And I can’t use MyProjectile->MyRootComponent->AddRadialForce() because my projectile is not simulating physics…

Is there a way to add radial force to an actor which uses UProjectileMovementComponent ?

Or should I code my own AddRadialForce() function?

14 posts - 1 participant