public void InitEmptyVehicleWithCore() { if (vehicle) { DestroyImmediate(vehicle); } vehicle = new GameObject("Vehicle", typeof(Rigidbody)); Rigidbody rb = vehicle.GetComponent <Rigidbody>(); rb.useGravity = false; rb.drag = 0.5f; rb.angularDrag = 2.0f; VehicleBuilder.AddBlock(vehicle, BlockDatabase.instance.GetBlockPrefabById(0), vehicle.transform.position, vehicle.transform.rotation, true); }