Hello, I am a beginner in Unreal Engine.
I’m currently developing an item drop when a monster dies.
First, I attached the StaticMesh to the BoxComponent in the drop item related class.
And when a monster dies, we implemented a drop item that spawns at the location where the monster died.
The moment the drop item is spawned, I want to use AddForce or AddImpulse on BoxComponent to make it appear in a parabola.
I tried two ways:
-
I tried both AddForce and AddImpulse on BoxComponent, and in both cases, only the BoxComponent moved. (My thought was that since the StaticMesh is attached to the BoxComponent, it should move with it.)
-
Changed StaticMesh to SetSimulatePhysics(true) and added AddForce to StaticMesh. However, the two people moved to different locations.
So,
I want to move BoxComponent and StaticMesh to the same position at the same time. Thank you for reading.
※I drew a picture of what I wanted to try. I want to try making the drop item move in the direction of the arrow.