Skip to content

Rockets going through walls #1555

Closed Answered by cuppajoeman
cuppajoeman asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out that there is something called EMotionType so when I create my rockets now I do:

    JPH::BodyCreationSettings rocket_creation_settings(rocket_shape, spawn_position, JPH::Quat::sIdentity(),
                                                       JPH::EMotionType::Dynamic, Layers::MOVING);
    rocket_creation_settings.mMotionQuality = JPH::EMotionQuality::LinearCast;

and they have never tunneled through the walls yet.

read more here: https://jrouwe.github.io/JoltPhysics/index.html#continuous-collision-detection

Replies: 1 comment

Comment options

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