如何检测webgl中的碰撞? [英] How to detect collision in webgl?

查看:44
本文介绍了如何检测webgl中的碰撞?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 webgl 中检测碰撞,而不使用像 three.js 这样的任何库?

How to detect collision in webgl, without using any library like three.js?

推荐答案

如何在 webgl 中检测碰撞

How to detect collision in webgl

你没有.WebGL 和 OpenGL 一样,仅用于绘图.它不管理场景,没有对象"的概念或碰撞之类的高级事物.都是关于点、线、三角形和着色器的.

You don't. WebGL, like OpenGL is only for drawing stuff. It doesn't manage a scene, it has no notion of "objects" or such high level things like collisions. It's all about points, lines, triangles and shaders.

与场景管理或碰撞相关的任何事情都超出了 WebGL(和 OpenGL)的范围.

Anything related to scene management or collisions lies outside the scope of WebGL (and OpenGL).

这篇关于如何检测webgl中的碰撞?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆