예제 #1
0
        public void SetCollisionAgent(ChaControl target, bool kokanTarget, bool anaTarget, bool oralTarget)
        {
            if (danAgent == null || controllerOptions == null || !danTargetsValid)
            {
                return;
            }

            if (collisionAgent != null && collisionAgent.m_collisionCharacter != null)
            {
                danAgent.RemoveDanCollidersFromTarget(collisionAgent.m_collisionCharacter, isKokan, isAna);
                danAgent.RemoveTamaColliders();
            }

            collisionAgent = new CollisionAgent(target, collisionOptions);

            isKokan = kokanTarget;
            isAna   = anaTarget;
            isOral  = oralTarget;

            if (isKokan)
            {
                danAgent.AddDanCollidersToTargetKokan(collisionAgent.m_collisionCharacter, collisionOptions.enableBellyBulge);
            }

            if (isAna)
            {
                danAgent.AddDanCollidersToTargetAna(collisionAgent.m_collisionCharacter);
            }

            danAgent.AddTamaColliders(collisionAgent.m_collisionCharacter, false);
        }
예제 #2
0
        public void SetCollisionAgent(ChaControl target)
        {
            if (danAgent == null || danOptions == null || !danTargetsValid)
            {
                return;
            }

            if (collisionAgent != null)
            {
                danAgent.RemoveDanColliders(collisionAgent);
                danAgent.RemoveTamaColliders();
            }

            collisionAgent = target;
            danAgent.AddDanColliders(collisionAgent);
            danAgent.AddTamaColliders(collisionAgent, false);
        }