Ejemplo n.º 1
0
        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]));
            Radius   = float.Parse(strs[3]);
            Collider = VCollisionShape.CreateSphereColliderShape(Center, Radius);

            return(null);
        }
Ejemplo n.º 2
0
 public SphereColliderComponent(VInt3 center, float radius)
 {
     Center   = center;
     Radius   = radius;
     Collider = VCollisionShape.CreateSphereColliderShape(center, radius);
 }