Esempio n. 1
0
        //=========================================================================================
        /// <summary>
        /// 初期設定
        /// </summary>
        public override void Create()
        {
            flagList                  = new FixedChunkNativeArray <ParticleFlag>();
            teamIdList                = new FixedChunkNativeArray <int>();
            posList                   = new FixedChunkNativeArray <float3>();
            rotList                   = new FixedChunkNativeArray <quaternion>();
            oldPosList                = new FixedChunkNativeArray <float3>();
            oldRotList                = new FixedChunkNativeArray <quaternion>();
            oldSlowPosList            = new FixedChunkNativeArray <float3>();
            localPosList              = new FixedChunkNativeArray <float3>();
            basePosList               = new FixedChunkNativeArray <float3>();
            baseRotList               = new FixedChunkNativeArray <quaternion>();
            depthList                 = new FixedChunkNativeArray <float>();
            radiusList                = new FixedChunkNativeArray <float3>();
            restoreTransformIndexList = new FixedChunkNativeArray <int>();
            transformIndexList        = new FixedChunkNativeArray <int>();
            frictionList              = new FixedChunkNativeArray <float>();
            velocityList              = new FixedChunkNativeArray <float3>();
            collisionLinkIdList       = new FixedChunkNativeArray <int>();
            collisionDistList         = new FixedChunkNativeArray <float>();
            //collisionLinkLocalPosList = new FixedChunkNativeArray<float3>();
            //collisionLinkDirectionList = new FixedChunkNativeArray<float3>();
            nextPos0List = new FixedChunkNativeArray <float3>();
            nextPos1List = new FixedChunkNativeArray <float3>();
            nextRot0List = new FixedChunkNativeArray <quaternion>();
            nextRot1List = new FixedChunkNativeArray <quaternion>();

            // パーティクル[0]番を登録、以降この0番は無効扱いとする
            var c = CreateParticle(Flag_Kinematic, 0, 0, quaternion.identity, 0.0f, 1.0f, 0);

            SetEnable(c, false, null, null, null);
        }
Esempio n. 2
0
 //=========================================================================================
 public override void Create()
 {
     dataList     = new FixedChunkNativeArray <LineRotationData>();
     rootInfoList = new FixedChunkNativeArray <LineRotationRootInfo>();
     groupList    = new FixedNativeList <GroupData>();
     rootTeamList = new FixedChunkNativeArray <int>();
 }
        /// <summary>
        /// 拘束データごとの作業バッファ
        /// </summary>
        //FixedChunkNativeArray<float> lengthBuffer;

        //=========================================================================================
        public override void Create()
        {
            dataList     = new FixedChunkNativeArray <ClampDistance2Data>();
            rootInfoList = new FixedChunkNativeArray <ClampDistance2RootInfo>();
            groupList    = new FixedNativeList <GroupData>();
            rootTeamList = new FixedChunkNativeArray <int>();
        }
 //=========================================================================================
 public override void Create()
 {
     dataList       = new FixedChunkNativeArray <VolumeData>();
     groupIndexList = new FixedChunkNativeArray <short>();
     refDataList    = new FixedChunkNativeArray <ReferenceDataIndex>();
     writeBuffer    = new FixedChunkNativeArray <float3>();
     groupList      = new FixedNativeList <GroupData>();
 }
Esempio n. 5
0
 //=========================================================================================
 public override void Create()
 {
     dataList     = new FixedChunkNativeArray <ClampRotationData>();
     rootInfoList = new FixedChunkNativeArray <ClampRotationRootInfo>();
     groupList    = new FixedNativeList <GroupData>();
     rootTeamList = new FixedChunkNativeArray <int>();
     lengthBuffer = new FixedChunkNativeArray <float>();
 }
 //=========================================================================================
 public override void Create()
 {
     groupList   = new FixedNativeList <RestoreDistanceGroupData>();
     dataList    = new FixedChunkNativeArray <RestoreDistanceData> [TypeCount];
     refDataList = new FixedChunkNativeArray <ReferenceDataIndex> [TypeCount];
     for (int i = 0; i < TypeCount; i++)
     {
         dataList[i]    = new FixedChunkNativeArray <RestoreDistanceData>();
         refDataList[i] = new FixedChunkNativeArray <ReferenceDataIndex>();
     }
 }
 //=========================================================================================
 public override void Create()
 {
     dataList    = new FixedChunkNativeArray <ClampDistanceData>();
     refDataList = new FixedChunkNativeArray <ReferenceDataIndex>();
     groupList   = new FixedNativeList <GroupData>();
 }
Esempio n. 8
0
 //=========================================================================================
 public override void Create()
 {
     groupList = new FixedNativeList <GroupData>();
     dataList  = new FixedChunkNativeArray <BaseSkinningData>();
 }
Esempio n. 9
0
 //=========================================================================================
 public override void Create()
 {
     groupList   = new FixedNativeList <GroupData>();
     dataList    = new FixedChunkNativeArray <PenetrationData>();
     refDataList = new FixedChunkNativeArray <ReferenceDataIndex>();
 }
Esempio n. 10
0
 //=========================================================================================
 public override void Create()
 {
     triangleDataList  = new FixedChunkNativeArray <TriangleRotationData>();
     triangleIndexList = new FixedChunkNativeArray <int>();
     groupList         = new FixedNativeList <GroupData>();
 }
Esempio n. 11
0
 //=========================================================================================
 public override void Create()
 {
     dataList    = new FixedChunkNativeArray <AdjustRotationData>();
     groupList   = new FixedNativeList <GroupData>();
     particleMap = new ExNativeMultiHashMap <int, int>();
 }