public override string[] DeSerilize(string str) { var strs = base.DeSerilize(str); Center = new VInt3(int.Parse(strs[0]), int.Parse(strs[1]), int.Parse(strs[2])); Size = new VInt3(int.Parse(strs[3]), int.Parse(strs[4]), int.Parse(strs[5])); Collider = VCollisionShape.CreateBoxColliderShape(Center, Size); return(null); }
public BoxColliderComponent(VInt3 center, VInt3 size) { Center = center; Size = size; Collider = VCollisionShape.CreateBoxColliderShape(center, size); }