Ejemplo n.º 1
0
 // create a constraint of this type
 public ConstraintCreator(EngineInstanceConstraint.ConstraintType_e type)
 {
     IconIndex = EditorManager.GUI.ShapeTreeImages.AddBitmap(Path.Combine(EditorManager.AppDataDir, @"bitmaps\Shapes\Constraint.bmp"), Color.Magenta);
       CategoryIconIndex = IconIndex;
       _type = type;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="nodeName">name of the node</param>
 /// <param name="_type">constarint type. Can be changed but is used for some special init sizes</param>
 public ConstraintShape(string nodeName, EngineInstanceConstraint.ConstraintType_e _type)
     : base(nodeName)
 {
     _fRadius = 50.0f; // spheres etc.
       if (_type==EngineInstanceConstraint.ConstraintType_e.Point)
     _fRadius = 4.0f;
       ConstraintType = _type;
       ScaleForUI();
 }