Skip to content

Commit

Permalink
[DefaultAnimationLoop] Add timer for collision begin and collision end (
Browse files Browse the repository at this point in the history
#5043)

Add timer for collision begin and collision end

Co-authored-by: erik pernod <[email protected]>
  • Loading branch information
bakpaul and epernod authored Oct 7, 2024
1 parent 9e08f22 commit d36dcf8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,15 @@ void DefaultAnimationLoop::propagateOnlyPositionAndVelocity(const SReal nextTime

void DefaultAnimationLoop::propagateCollisionBeginEvent(const core::ExecParams* params) const
{
SCOPED_TIMER("CollisionBeginEvent");
CollisionBeginEvent evBegin;
PropagateEventVisitor eventPropagation( params, &evBegin);
eventPropagation.execute(m_node);
}

void DefaultAnimationLoop::propagateCollisionEndEvent(const core::ExecParams* params) const
{
SCOPED_TIMER("CollisionEndEvent");
CollisionEndEvent evEnd;
PropagateEventVisitor eventPropagation( params, &evEnd);
eventPropagation.execute(m_node);
Expand Down

0 comments on commit d36dcf8

Please sign in to comment.