Is it possible to simulate 3G or 4G network speeds and latencies on Linux from WiFi connection at home?

I have heard tc (traffic control) a bit... Would this be possible to create similar speeds and latencies that are similar to 3G or 4G?

Or what else can be use to do this?