Exemple #1
0
        protected void Init_Attack()
        {
            SpiderTarget.AimAtTarget();
            //SpiderTarget.GotoTargetNoPath(0.0f);
            Vector3 dir = (Vector3)(SpiderTarget.TargetPosition - Bot.AgentEntity.PositionComp.GetPosition());

            dir.Normalize();
            //Bot.AgentEntity.Physics.ApplyImpulse(dir, Bot.AgentEntity.PositionComp.GetPosition());
            SpiderTarget.Attack();
        }