摘要:        
代码演示: using System.Collections;using System.Collections.Generic;using UnityEngine; public class GameObjectFind : MonoBehaviour { private GameObject th    阅读全文
        
            posted @ 2019-07-31 17:49
激流勇进1
阅读(253)
评论(0)
推荐(0)
        
            
        
        
摘要:        
代码演示: using System.Collections;using System.Collections.Generic;using UnityEngine; public class TransformFind : MonoBehaviour { private Transform m_Tr    阅读全文
        
            posted @ 2019-07-31 17:49
激流勇进1
阅读(656)
评论(0)
推荐(0)
        
            
        
        
摘要:        
要想实现键盘控制作用,就需要给游戏键盘监听事件利用pygame模块的key.get_pressed()方法,来检测按键是否按下 key_press =pygame.key.get_pressed() if not key_press[K_UP] and ball.rect.bottom < heig    阅读全文
        
            posted @ 2019-07-31 17:48
激流勇进1
阅读(582)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Point center(face_img.cols/2, face_img.rows/2);	//cv::Mat rot_mat = cv::getRotationMatrix2D(center, -1 * arctan, 1.0); cv::Mat Rx(3, 3, CV_32FC1); dou    阅读全文
        
            posted @ 2019-07-31 17:47
激流勇进1
阅读(268)
评论(0)
推荐(0)
        
            
        
        
摘要:        
void warp_perspect_3_angle(cv::Mat face, float roll, float yaw, float pitch) { cv::Mat face_img = face.clone();	int imgHeight = face_img.rows;	int img    阅读全文
        
            posted @ 2019-07-31 17:47
激流勇进1
阅读(717)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Point center(face_img.cols/2, face_img.rows/2);	//cv::Mat rot_mat = cv::getRotationMatrix2D(center, -1 * arctan, 1.0); cv::Mat Rx(2, 3, CV_32FC1); dou    阅读全文
        
            posted @ 2019-07-31 17:46
激流勇进1
阅读(201)
评论(0)
推荐(0)
        
            
        
        
摘要:        
态机模式在unity中作用是非常大的,可以实现角色的移动和场景的跳转,包括一些动画的播放,在很多unity框架中也是很常见的,发散思维广阔,下面是简单的状态机的实现,有注释 using System.Collections;using System.Collections.Generic;using    阅读全文
        
            posted @ 2019-07-31 17:44
激流勇进1
阅读(485)
评论(0)
推荐(0)
        
            
        
        
摘要:        
//移动状态public class MoveState : StateObject{ public MoveState(StateManger state):base(state) { } public override void EnterState() { Debug.Log("进入移动状态"    阅读全文
        
            posted @ 2019-07-31 17:44
激流勇进1
阅读(168)
评论(0)
推荐(0)
        
            
        
        
摘要:        
MessageManager.lua local messageManager = {mEventTable = {},mEventUserData = {}} --注册事件function messageManager.Add(EventName,Func,UserData)	assert( Fu    阅读全文
        
            posted @ 2019-07-31 17:43
激流勇进1
阅读(232)
评论(0)
推荐(0)
        
            
        
        
摘要:        
mylabel.cpp #include "mylabel.h" MyLabel::MyLabel(QWidget* parent) :QLabel(parent){ }MyLabel::~MyLabel(){ }void MyLabel::enterEvent(QEvent *e){ setTex    阅读全文
        
            posted @ 2019-07-31 17:42
激流勇进1
阅读(848)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                 
 
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号