public override ShapeBase CreateShapeInstance() { HavokConstraintShape shape = new HavokConstraintShape("Constraint"); shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return(shape); }
/// <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; }