getCollisionVelocityReflection method
Implementation
@override
Vector2 getCollisionVelocityReflection(
PositionComponent other,
CollisionData data,
) {
if (_bouncingObjectEnabled && onBouncingCollision(other)) {
return super.getCollisionVelocityReflection(other, data) *
_bouncingReflectFactor;
}
return super.getCollisionVelocityReflection(other, data);
}