コード例 #1
0
        public bool IntersectsPoint(Vector worldPosition, ulong time)
        {
            IMotion motion = m_Path.GetCurrentMotion(time);

            var objectPosition = motion.GetCurrentPosition(time);

            return(m_Bounds.Contains(worldPosition, objectPosition));
        }
コード例 #2
0
        public void BecauseOf()
        {
            m_Path = Get<IPath>();
            m_Motion = Get<IMotion>();

            m_Path.GetCurrentMotion(Arg.Any<ulong>()).Returns(m_Motion);

            m_SelectableObject = new SelectableObject(m_TestObjectName, m_Path);
        }
コード例 #3
0
        public void BecauseOf()
        {
            m_Path   = Get <IPath>();
            m_Motion = Get <IMotion>();

            m_Path.GetCurrentMotion(Arg.Any <ulong>()).Returns(m_Motion);

            m_SelectableObject = new SelectableObject(m_TestObjectName, m_Path);
        }