You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
464 B

  1. -- 绑定UI
  2. cc.Billboard3DNode.ClassName = "Billboard3DNode"
  3. function cc.Billboard3DNode:createNode()
  4. local layer = cc.Billboard3DNode:create();
  5. return layer;
  6. end
  7. function cc.Billboard3DNode:setDefaults()
  8. end
  9. function cc.Billboard3DNode:loadFromXmlNode(xmlNode)
  10. cc.EffectNode.loadFromXmlNode(self , xmlNode)
  11. end
  12. function cc.Billboard3DNode:getSelectBox()
  13. local box = cc.BoundingBox:new(0,0,0,1,1,1);
  14. box:transform(self:getWorldMatrix());
  15. return box;
  16. end