Exemplo n.º 1
0
        public override ShapeBase CreateShapeInstance()
        {
            HavokConstraintShape shape = new HavokConstraintShape("Constraint");

            shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
            return(shape);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This function must be overridden, since we have to reset the hotspots
        /// </summary>
        /// <returns></returns>
        public override ShapeBase Clone()
        {
            HavokConstraintShape copy = (HavokConstraintShape)base.Clone();

            // Create a deep copy of the type properties
            copy._typeProperties = _typeProperties.Clone() as ConstraintStateBase;

            return(copy);
        }
 public override ShapeBase CreateShapeInstance()
 {
     HavokConstraintShape shape = new HavokConstraintShape("Constraint");
       shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
       return shape;
 }