≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Get a node's width ? possible
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b][/b] wrote: HI, unfortunately there is no command to get actual width of any 3D object directly in CopperCube. But here is a workaround to get width of any object. In your 3D scene create a cubemesh with size of 1, attach this cubemesh to the object whose width you want to get by attaching I mean make it children of that object, and change the position to (0,0,0) for the cubemesh. Now the cubemesh will be in the center of your object. Now change the cubemesh material to either transparent or Transparent add, when I said make it transparent I mean also apply a transparent texture to it. Now start scaling the cubemesh to the width and height of your object and that's it. Now, whenever you want to get the width of your object, simply try to get the scale of that cubemesh on the axis that you want to get the width of either X or Z axis and you will have the exact width of your object, it doesn't matter wether it's animated or static. just make sure when you create cubemesh it is of size 1. I also showcased this in one of my YouTube video, but people generally don't notice these tricks in my videos. One can also use the polygon editing API,but that will computationally heavy and won't work with animated objects. Hope this helps you and anybody who needs to achieve the same*holy*[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact