文件名称:3
-
所属分类:
- 标签属性:
- 上传时间:2013-04-17
-
文件大小:8.99kb
-
已下载: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
第三个
第三个/work3.fig
第三个/work3.m
第三个
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.