Skip to content

Getting exception without explanation #1575

Answered by jrouwe
Shinkeys asked this question in Q&A
Discussion options

You must be logged in to vote

SetBodyObjectLayerInternal calls into the BroadPhaseLayerInterface object that you provided in PhysicsSystem::Init. Most likely you destroyed this interface after calling Init. Instead, you need to ensure that the interface stays alive during the lifetime of PhysicsSystem.

(this is documented here: https://jrouwe.github.io/JoltPhysics/class_physics_system.html#ae578fcd0c58f678156b7cd8b44f811a6)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Shinkeys
Comment options

Answer selected by Shinkeys
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