开发者

How to create child node in Ogre3D that only follows the parent without rotation?

开发者 https://www.devze.com 2023-04-10 22:14 出处:网络
I need to create node that will be following parent (with little offset), but it won\'开发者_运维知识库t rotate with parent. Only always translate to parent\'s position.Maybe your looking for billboar

I need to create node that will be following parent (with little offset), but it won'开发者_运维知识库t rotate with parent. Only always translate to parent's position.


Maybe your looking for billboard?

From Ogre3d wiki:

A Billboard is a square polygon that is always pointed at the camera. It is also known as a sprite. To make one, you must first make a BillboardSet. Then the billboard can be added to it on a given position. The BillboardSet is a MovableObject and should therefore be added to a SceneNode. The whole procedure is as follows:

0

精彩评论

暂无评论...
验证码 换一张
取 消