Hello! I'm relatively new to Studio, and I wanted to ask if someone can help me solve this issue of players always being able to push around unanchored objects. If anything, I want players to be the ones being pushed around by objects instead for my game. Basically, I want players to still be able to collide / stand on objects but not push them around without altering the mass of the object. Any workarounds?
#Player Physics Help
1 messages · Page 1 of 1 (latest)
well
if you dont want to change either of their masses
i suppose this sounds a little crazy but
maybe you could create another part for every pushable part, and it would be anchored and constantly go to the position of the unanchored part, and then use collision groups to make the player able to collide with it but not the two parts able to collide with one another?
but changing the mass sounds way easier
i never worked with collision groups though so i got no idea
Wait, so anchored objects can constantly be teleported/go to the position of an unanchored part?
*Sorry again, still new to this whole thing
My workaround is to use collision groups right now but phasing through objects is not really IT for me :/
perhaps you could make the anchored one a tad bigger so they cant push it
Thats clever and sounds like a lot of work, but it might actually be the only solution
Thanks man
I'll try it out
Other guy on this thread is close.
-
Make the two identical parts overlap fully.
-
Make the second part invisible.
-
Weld the visible part to the invisible one.
-
Make the visible one unable to collide with players via collision groups.
-
important make the invisible part which will collide with players massless. This way the physics enacted upon it will not affect the total construct (invisible + visible part).
I've tried to weld the "hitbox" to the car and the car to the hitbox and it doesn't really make a difference unfortunately... Did I miss something?
** You are now Level 1! **
If the hitbox is massless it theoretically shouldnt contribute to the weight of the whole
make sure the car or main part of the car is part0 and the hitbox is part1
Oh, you meant cars
physics are defo not my speciality but what they do is make the car "heavier", not unable to be moved by the player
the player can push it they just dont produce enough force to make it move, just like irl
network ownership of the car should also be given to the player when driving, and to the server when they hop out
Is there a line of code to just remove the player's force? Cause if I alter the car's mass to be heavier, it'll mess up the performance/driving of the car