Browse Source

Added comment

Jorrit Rouwe 2 years ago
parent
commit
11fb9ae377
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jolt/Physics/Collision/ContactListener.h

+ 1 - 0
Jolt/Physics/Collision/ContactListener.h

@@ -57,6 +57,7 @@ enum class ValidateResult
 
 
 /// A listener class that receives collision contact events events.
 /// A listener class that receives collision contact events events.
 /// It can be registered with the ContactConstraintManager (or PhysicsSystem).
 /// It can be registered with the ContactConstraintManager (or PhysicsSystem).
+/// Note that contact listener callbacks are called from multiple threads at the same time when all bodies are locked, you're only allowed to read from the bodies and you can't change physics state.
 class ContactListener
 class ContactListener
 {
 {
 public:
 public: