游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1458|回复: 0

NxOgre 1.5.3 问题 急。。 求帮助

[复制链接]

1

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2009-8-24 11:37:00 | 显示全部楼层 |阅读模式
大家好,我用NxOgre 1.53 加了两个人物都创建个 body 请问我怎样能让两人物实现 碰撞
下面是创建人物 body 的 代码
                mRenderSystem = new OGRE3DRenderSystem(mScene);

                mCube = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Real3(300, 0, 210), "ninja.mesh");

                mCubeTwo = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Real3(320, 0, 210), "ninja.mesh");
               
                mCubeTwo->getEntity()->getParentNode()->scale(3,3,3);
                mCube->getEntity()->getParentNode()->scale(3,3,3);
mCubeTwo和 mCube 是 OGRE3DBody 中定义的 body
           OGRE3DBody* mCube;
        OGRE3DBody* mCubeTwo;
请问我怎样能让两人物实现 碰撞
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-21 04:25

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表