Extract raycastGround function
Gas and spark particle effects