干脆写个平方根表(就是让自己的电脑慢一点,来获取正式发布时的快速 |
|
本帖最后由 yagami 于 2013-10-28 14:26 编辑 姿势没啥问题 但是ruby好像不认f 我试了下 用f做参数就报错 重写了下函数接受和返回都用int就没问题了 但这样精度太差 所以我觉得 你可以把碰撞的逻辑也写在dll里 这些数学函数就在dll里内部使用 外部就写个碰撞函数 碰撞只要返回0 1就足矣了 这样还能提升效率 调用次数大大减少了
|
本帖最后由 yagami 于 2013-10-27 22:24 编辑
|
本帖最后由 yagami 于 2013-10-27 20:44 编辑
|
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-9-30 17:35
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.