public void InitializeOriented(ScriptComponent referenceComponent, PrimaryDirection primaryDirection) { m_orientedFrictionReferenceObject = referenceComponent; m_orientedFrictionPrimaryDirection = primaryDirection; Native = CreateNative(Type, SolveType); OnNativeInstanceChanged(Native); }
public static Vector3 Convert(PrimaryDirection primaryDirection) { return(primaryDirection == PrimaryDirection.X ? Vector3.right : primaryDirection == PrimaryDirection.Y ? Vector3.up : Vector3.forward); }
public PlanByProgramInputs(double suiteRatio, double corridorWidth, double plenumHeight, bool multipleLevels, bool diagonalAdjacency, bool conformFloorsToRooms, SuitePlanType suitePlanType, PrimaryDirection primaryDirection, CoordinateAdjacency coordinateAdjacency, string bucketName, string uploadsBucket, Dictionary <string, string> modelInputKeys, string gltfKey, string elementsKey, string ifcKey) : base(bucketName, uploadsBucket, modelInputKeys, gltfKey, elementsKey, ifcKey) { this.SuiteRatio = suiteRatio; this.CorridorWidth = corridorWidth; this.PlenumHeight = plenumHeight; this.MultipleLevels = multipleLevels; this.DiagonalAdjacency = diagonalAdjacency; this.ConformFloorsToRooms = conformFloorsToRooms; this.SuitePlanType = suitePlanType; this.PrimaryDirection = primaryDirection; this.CoordinateAdjacency = coordinateAdjacency; }