Skip to content

some newbie questions about JoltPhysics #410

Answered by jrouwe
brightening-eyes asked this question in Q&A
Discussion options

You must be logged in to vote
  • when moving my character, can I use step listeners to check for user input and change the velocity accordingly? (I saw vehicle constraint's code and it was a step listener).

You could, but usually you would move (update) your character in your game code, so you can update the input then as well.

  • how to pair a character with my virtual character (in order for other objects to see it)? I want to check collision with vehicles and other objects.

Please take a look at this thread: #239

  • in character's API, I didn't see AddBuoyancyImpulse in order to make it floating in the water.

That API doesn't exist. Usually the player behaves in a completely non-physical way, so I didn't bother …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brightening-eyes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants