Hello!
I am writing a simple billiards game. I want to detect if an element is moving or it just has stopped. Basically, I want to check if an element has kinematic energy. Is there any method in the engine for checking this?
I am asking because I see that collision shape is changing color in debug mode when my object stops moving.
Thank you 
 
         
        
 
         
  
         I am rather new to cpp and it is not the time for optimization
 I am rather new to cpp and it is not the time for optimization  Anyway both solutions will work just fine
 Anyway both solutions will work just fine