碰撞检测的例子:

"E:\Program Files (x86)\rl-0.6.2\bin\rlCollisionDemo.exe" "E:\Program Files (x86)\rl-0.6.2\share\rl\examples\rlsg\scene.xml"

05_例子讲解:rlCollisionDemo.exe-LMLPHP

修改X值,当2个物体碰到一块时,窗口就会变红:

05_例子讲解:rlCollisionDemo.exe-LMLPHP

默认都原生支持碰撞??例子的代码在哪里??

RL库是支持碰撞检测的,例子程序的代码目录在:

E:\01_workspace\05_RL\rl-0.6.2\demos\rlCollisionDemo

04-16 15:07