Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors and Kinematic Bodies #238

Closed
jankrassnigg opened this issue Sep 27, 2022 · 1 comment
Closed

Sensors and Kinematic Bodies #238

jankrassnigg opened this issue Sep 27, 2022 · 1 comment

Comments

@jankrassnigg
Copy link
Contributor

This issue is similar to #130 but it happens for kinematic objects.

When a kinematic object overlaps with a sensor, at first I do get a contact report. As long as nothing else in the scene happens, it then continues to proplerly report those contacts:

Sensor.-.Kinematic.mp4

However, if anything else generates contacts in the scene, even outside the sensor, the behavior becomes erratic. Basically the contacts may get removed and added for a short while, but then the sensor completely stops reporting those contacts.

Sensor.-.Kinematic.-.Dynamic.mp4

The video only captured a simpler result, but in practice I have seen the result flicker on and off for half a second or so, before it settles on not reporting contacts any further.

Thing is, I wouldn't have been surprised, if sensors wouldn't report ANY contacts with kinematic objects ever. But IF Jolt is supposed to do so, then I would expect it to do it the same way as for dynamic objects.

My sensor uses motion type kinematic.

@jrouwe
Copy link
Owner

jrouwe commented Sep 27, 2022

I could reproduce it. Whether or not the contact was reported depended on the order in which the kinematic body and sensor were activated (and the 3rd body would affect that order if it went to sleep).

#240 should fix it, it was introduced by my fix for #130.

@jrouwe jrouwe closed this as completed Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants