文件名称:3
介绍说明--下载内容均来自于网络,请自行研究使用
请设计一个模拟投篮过程的小游戏,游戏的要求如下:
(1)设计一个matlab窗体,在窗体上防止一个坐标轴控件,并设置好该坐标系的坐标轴范围;
(2)在坐标系上利用鼠标点击一个点a,作为篮筐的中心,并生成一个半径为r的圆,来模拟篮筐;
(3)在坐标系上再用鼠标点一个点b,作为投篮的出发点,同时生成一个红色实心小球来模拟篮球,再选一个点c,b、c之间的连线作为投篮方向;
(4)根据a、b、c三个点之间的位置关系,来模拟投篮过程,并记录命中次数;
(5)以按住鼠标不放的时间来模拟力量(初始速度)的大小,并能够动态模拟篮球的运动轨迹,篮球的质量自定,忽略空气阻力的影响,相关的数值要求在坐标系右上角动态显示出来。
-Games, game design a simulation shooting process requirements are as follows: (1) design a Matlab form, to prevent a axis control on the form, and set the coordinate system axis range (2) in the coordinate Department using the mouse to click on a point a, and generates a radius r of the circle to simulate the basket as the center of the basket (3) in the coordinate system and then the mouse to point a point b, as draws the departure point, at the same time generate a red solid pellets to simulate basketball, and then choose a connection between the point c, b, c, as the shooting direction (4) according to the positional relationship between a, b, c three points, to simulate shooting process and record the number of hits (5) Press and hold the mouse button down to simulate the size of the force (initial velocity), and capable of dynamic simulation of the trajectory of the basketball, basketball quality custom ignore the effect of air resistance, the The numerical requirements displa
(1)设计一个matlab窗体,在窗体上防止一个坐标轴控件,并设置好该坐标系的坐标轴范围;
(2)在坐标系上利用鼠标点击一个点a,作为篮筐的中心,并生成一个半径为r的圆,来模拟篮筐;
(3)在坐标系上再用鼠标点一个点b,作为投篮的出发点,同时生成一个红色实心小球来模拟篮球,再选一个点c,b、c之间的连线作为投篮方向;
(4)根据a、b、c三个点之间的位置关系,来模拟投篮过程,并记录命中次数;
(5)以按住鼠标不放的时间来模拟力量(初始速度)的大小,并能够动态模拟篮球的运动轨迹,篮球的质量自定,忽略空气阻力的影响,相关的数值要求在坐标系右上角动态显示出来。
-Games, game design a simulation shooting process requirements are as follows: (1) design a Matlab form, to prevent a axis control on the form, and set the coordinate system axis range (2) in the coordinate Department using the mouse to click on a point a, and generates a radius r of the circle to simulate the basket as the center of the basket (3) in the coordinate system and then the mouse to point a point b, as draws the departure point, at the same time generate a red solid pellets to simulate basketball, and then choose a connection between the point c, b, c, as the shooting direction (4) according to the positional relationship between a, b, c three points, to simulate shooting process and record the number of hits (5) Press and hold the mouse button down to simulate the size of the force (initial velocity), and capable of dynamic simulation of the trajectory of the basketball, basketball quality custom ignore the effect of air resistance, the The numerical requirements displa
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第三个\work3.asv
......\work3.fig
......\work3.m
第三个