--[[
    Creates the PhysicsService collision groups used in the game and defines their
    relationship
]]

local PhysicsService = game:GetService("PhysicsService")
local ServerStorage = game:GetService("ServerStorage")

local ServerConstants = require(ServerStorage.Source.Constants.ServerConstants)

local WHEEL_GROUP = ServerConstants.PHYSICS_GROUP_WHEEL
local HITBOX_GROUP = ServerConstants.PHYSICS_GROUP_HITBOX

return function()
	PhysicsService:CreateCollisionGroup(HITBOX_GROUP)
	PhysicsService:CreateCollisionGroup(WHEEL_GROUP)
	PhysicsService:CollisionGroupSetCollidable(HITBOX_GROUP, WHEEL_GROUP, false)
end
