Hi i have a tool that is equipped in players hand with collision, when i hit a rock it only generates the hit event if simulate physics is on but i don’t want the rock to have physics, how can i fix this? Also the players capsule component does generate hit events on the rock even with physics turned off.
Hit Event
I was also thinking of making a line trace based of the sockets locations of the equipped tool but the hitbox for that wouldn’t be a precise as using the collision.
This phenomenon is not caused by enabling physics simulation on the rock, but rather by the collision channel settings. If you want to achieve the desired effect, you should make the following settings:
Set the object type in your tool’s collision settings to A (this depends on how you define it; you can also create a collision type called “Tool”).
Is the rock a Blueprint or a model in the scene? If it’s a Blueprint, you can set its collision type to B. If it’s a model, the default collision type for scene models should be WorldStatic.
You need to enable collisions with channel B in the collision settings of your tool’s Blueprint. In Unreal Engine, collisions occur as long as either object has collisions enabled for the other. Only when both objects ignore each other’s collision channels will there be no collision.
Another edit, If I move the tool using a set relative location with sweep on it runs the hit event correctly, However when moving using animations it doesn’t.
Is the some setting for animations to also be able to perform hit events?