Exemplo n.º 1
0
        public static PartArray CreateSetup(PhysicsObj owner, uint setupDID, bool createParts)
        {
            var setup = new PartArray();

            setup.Owner = owner;
            setup.Sequence.SetObject(owner);
            if (!setup.SetSetupID(setupDID, createParts))
            {
                return(null);
            }
            setup.SetPlacementFrame(0x65);
            return(setup);
        }
Exemplo n.º 2
0
        public static PartArray CreateMesh(PhysicsObj owner, uint setupDID)
        {
            var mesh = new PartArray();

            mesh.Owner = owner;
            mesh.Sequence.SetObject(owner);
            if (!mesh.SetMeshID(setupDID))
            {
                return(null);
            }
            mesh.SetPlacementFrame(0x65);
            return(mesh);
        }
Exemplo n.º 3
0
        public static PartArray CreateSetup(PhysicsObj owner, int setupDID, bool createParts)
        {
            var parts = new PartArray();

            parts.Owner = owner;
            parts.Sequence.SetObject(owner);
            if (!parts.SetSetupID(setupDID, createParts))
            {
                return(null);
            }
            parts.SetPlacementFrame(0x65);
            return(parts);
        }