游戏开发论坛

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

scenenode.setDirection 指定yaw, ptich, roll总是不对?

[复制链接]

2

主题

3

帖子

12

积分

新手上路

Rank: 1

积分
12
发表于 2013-4-20 16:50:20 | 显示全部楼层 |阅读模式
scenenode.setDirection 指定yaw, ptich, roll总是不对?

我想初始模型朝着一个方向
我有3个float分别是 yaw, pitch, roll

类似下面的设置:
scenenode.setDirection(Ogre::Vector3(yaw, pitch, roll), xxx::xxx_world);

模型有时候是正确朝向有时候是歪的这么回事?


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-2-26 22:59

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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