Search found 5 matches

by kander
Thu Apr 29, 2021 5:00 pm
Forum: General Bullet Physics Support and Feedback
Topic: Character standing on a moving vehicle
Replies: 6
Views: 5321

Re: Character standing on a moving vehicle

Another update. It looks like setting velocity of player to vehicle + player movement acctually works waaay better than I first thought. My current solution involves setting player position and adding a positional constraint only when the relative movement between the vehicle and the player is very ...
by kander
Wed Apr 28, 2021 12:52 am
Forum: General Bullet Physics Support and Feedback
Topic: Character standing on a moving vehicle
Replies: 6
Views: 5321

Re: Character standing on a moving vehicle

The slider constraint looks like it can be used as a velocity constraint. I will play around with it first.
by kander
Tue Apr 27, 2021 10:16 pm
Forum: General Bullet Physics Support and Feedback
Topic: Character standing on a moving vehicle
Replies: 6
Views: 5321

Re: Character standing on a moving vehicle

I've never actually tried it but: I believe better results can be obtained by using a second "world" simulation. When the character walks onto the vehicle you would spin up a second simulation, remove the character from first and add it to the second. In the second (vehicle-local) simulat...
by kander
Tue Apr 27, 2021 11:10 am
Forum: General Bullet Physics Support and Feedback
Topic: Character standing on a moving vehicle
Replies: 6
Views: 5321

Re: Character standing on a moving vehicle

I have found the results are really good if I turn up friction to the max. Howver, this means my character is stuck to to anything it touches and cannot move. It looks like I can use the contactAddedCallback to customize the friction between the player and the vehicle. I will try and see If I can ap...
by kander
Tue Apr 27, 2021 2:44 am
Forum: General Bullet Physics Support and Feedback
Topic: Character standing on a moving vehicle
Replies: 6
Views: 5321

Character standing on a moving vehicle

Hey all, I have a player controlled character (rigid body) which is moved by setting its velocity before each physics update. I would like the player to be able to stand and walk around on top of a moving vehicle. I have tried increasing the friction between the vehicle and the player, and also sett...