Skip to content

Is there a way to have ContactListener generate contact information for kinematic vs static interactions? #1236

Answered by mihe
LeifNo asked this question in Q&A
Discussion options

You must be logged in to vote

See BodyCreationSettings::mCollideKinematicVsNonDynamic and Body::SetCollideKinematicVsNonDynamic:

/// If kinematic objects can generate contact points against other kinematic or static objects.
/// Note that turning this on can be CPU intensive as much more collision detection work will be done without any effect on the simulation (kinematic objects are not affected by other kinematic/static objects).
/// This can be used to make sensors detect static objects. Note that the sensor must be kinematic and active for it to detect static objects.
inline void SetCollideKinematicVsNonDynamic(bool inCollide…

Replies: 1 comment 1 reply

Comment options

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

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