Rockets going through walls #1555
-
Hi there, 8mb.video-OKy-ykt6XRlU.mp4 |
Beta Was this translation helpful? Give feedback.
Answered by
cuppajoeman
Mar 6, 2025
Replies: 1 comment
-
I figured out that there is something called 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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cuppajoeman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured out that there is something called
EMotionType
so when I create my rockets now I do:and they have never tunneled through the walls yet.
read more here: https://jrouwe.github.io/JoltPhysics/index.html#continuous-collision-detection