Skip to content
Discussion options

You must be logged in to vote

This requires very particular repro steps:

  • The vehicle body needs to not be in the PhysicsSystem
  • You need to be registering the vehicle as a step listener so that it receives VehicleConstraint::OnStep
  • The vehicle needs to be on an active dynamic body

In this case, VehicleConstraint::OnStep would mark the constraint as active (due to the active body under the wheels) at which point the system tries to activate the vehicle body. This fails because it is not in the PhysicsSystem.

I've applied a fix in 62fa918

In general, I would:

  • Create but not add constraints to the physics system until you activate your world section
  • Register objects as step listeners only when you activate your world s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MrGreenWithAGun
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