Aide-3D方块2
aide吧
全部回复
仅看楼主
level 8
public class MainActivity extends PApplet {
private float rotationX = 0;
private float rotationY = 0;
private float velocityX = 0;
private float velocityY = 0;
@Override
public void setup() {
}
@Override
public void draw() {
background(255);
lights();
translate(this.displayWidth / 2, this.displayHeight / 2, 0);
rotateX(radians(-this.rotationX));
rotateY(radians(270 - this.rotationY));
noFill();
stroke(0);
box(400);
this.rotationX += this.velocityX;
this.rotationY += this.velocityY;
this.velocityX *= 0.95;
this.velocityY *= 0.95;
if (this.mousePressed) {
this.velocityX += (this.mouseY - this.pmouseY) * 0.01;
this.velocityY -= (this.mouseX - this.pmouseX) * 0.01;
}
}
@Override
public String sketchRenderer() {
return P3D;
}
}
2017年02月07日 09点02分 1
level 8
md风格
2017年02月07日 09点02分 5
level 10
前排
,万一有用呢[滑稽]
2017年02月07日 10点02分 8
level 11
[惊讶][惊讶]
2017年02月07日 12点02分 12
level 11
这有啥的,opengl
2017年02月07日 13点02分 13
level 8
修改添加美丽的shadow阴影
2017年02月08日 06点02分 17
这个厉害了[真棒]
2017年02月25日 12点02分
回复 我是外星人同伙 :只是小实验
2017年02月25日 12点02分
@烈焰神士_vip 嗯。。并且有严重BUG,GLSL?
2017年02月25日 12点02分
回复 我是外星人同伙 :不是, 主要还是这个函数android.opengl.GLSurfaceView;
2017年02月25日 12点02分
level 9
[滑稽]
2017年02月08日 17点02分 18
level 12
马克
2017年02月09日 06点02分 19
level 5
留名
2017年02月14日 15点02分 20
level 9

2017年02月25日 14点02分 22
捕捉dalao一枚[滑稽]
2017年02月25日 14点02分
level 12
图片不错
2017年12月13日 08点12分 23
level 3
没有主方法也能运行?小白问
2019年04月07日 05点04分 24
这是android开发,主方法在其他类里
2019年09月08日 00点09分
level 11
牛逼啊
2019年09月14日 01点09分 25
level 9
高手啊,这是用AIDE开发的吗?[啊][啊][啊][啊]
2019年09月25日 02点09分 26
求所有代码
2019年09月25日 02点09分
1 2 尾页