How make physique object to be affected by gravity

Hello everyone!
As per the title, how can I handle the physics affecting objects in the game? Because using a handle component gravity no longer affects the actor when using the grab component func, so basically I don’t know how to make it so that objects actually have weight. Maybe to be more precise: if the player wants to drag something off the table and it is very heavy, how can I simulate/apply gravity on that object? Are the costraint components the trick I need?

To drag object you probably attach it to player?

For physics objects you can turn on gravity in its properties.
Then instead attaching it to player, push it (or add force) in direction player is dragging/pushing it.
Goal for games is not to exactly simulate stuff, but rather fool player that it is accurate simulation.

So create logic that decides if player is carrying object or just pulling/pushing. Then either attach to player hand or push with force.

Thank you for the reply! I remade the entire logic on how I was managing the physics, I switched to constraints, one on the player and one on the actor hit by the linetrace. Now the grab and throwing items works like a charm and gravity affects the object even if grabbing it - something I didnt’ managed to achieve with handles.

Yeah probably to “simulate” heavy object now I can just manipulate constraint on the actor and do the trick. Much more control rather than handles

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.