Advertisement

AddImpulse do not work!

Started by August 02, 2023 07:18 PM
1 comment, last by frob 1 year, 3 months ago

Now I’m on a project that remaking the AngryBirds game with UE5

I’m working on Bird actor, which is inherited from PaperCharacter class

My target is when i press mouse button, the bird is follow my mouse cursor, and when i release the mouse, it impulse the bird.

I have done the first thing, but when i do the second, which release the mouse, it do not impulse the bird

I use AddImpulse() function but it seem do not work, the bird fall down when i release the mouse button.

I have test the ABirds::Release function, i testing it by replace the addimpulse, and using setActorLocation and it does work, but when i change to AddImpulse it doesn't. How?

Please help me

bird.cpp
bird.cpp
bird.h


Bird class's component

Moving to For Beginners.

Which one is more likely, that the engine used around the globe has a core physics function that is broken and doesn't work, or that you're using it wrong?

Have you verified that the call is being made? Have you verified that releaseActor is the right one? Have you verified that all the physics properties are correct on the object? Have you verified that (0,45,45) is the right vector? Have you checked the bone name, which you didn't seem to provide?

This topic is closed to new replies.

Advertisement