![]() |
getTransform() and getChild() doubts
Hello,
I have a 3D model which i opened in the inspector to get the names of the transforms. After that I used the getTransform() option and tried to perform collision detection, but the problem i faced was that there is no collideBox() attribute when i use the getTransform() option.. Alternately i tried using the getChild() option and i saw that it has the collideBox() attribute but somehow the collision detection is not working properly. Any reason or any mistake in my work??? Code:
dojo = viz.add('gear.OSGB') |
If you want to apply a collision shape to a sub-part of the model, try using the node parameter with the sub-part name:
Code:
#Create a collideBox surrounding a child node |
All times are GMT -7. The time now is 05:35 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC