How can I change the mass value of actor, while grabbing the actor from one place to another place with Physics Handle?
I changed mass_scale
, linear_damping
, angular_damping
values, but it doesn’t change anything at all. linear_damping
and angular_damping
affects while dropping with gravity, not grabbing.
Actors do not have mass. Static mesh components do:
Not sure I understood the issue. Afair, the Physics Handle overrides a lot of physics stuff while it latches onto the component.
yeap, I mean static mesh inside actor classes. I tried it and promote to variable MassInKg
value, but it doesn’t work unfortunately
I did set_mass_override_in_kg
function on my actor class itself, but doesn’t work and there is not any effect while grabbing. I changed mass values from this value btw
You changed the mass of the static mesh. What are your expectations? What effect are you talking about? What is supposed to happen? Did you expect the object to feel heavier while the Physics Handle
is grabbing onto it?
yeap, I want to do that. You can look at this video for referring. Mass value of left one is 200, right one is 1. But they feel like they are on same weights while grabbing, I don’t want that
As mentioned above, mass has no effect on the behaviour of the Physics Handle. Read the mass values of the component and modify those accordingly, based on the mass of the object:
I solved this problem with getting mass of Hit Component and apply some interpolation there on my character class something like this. Btw, this logic can be more precise with extra additions according to different masses for meshes. This is just a simpler format of it
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.