dav74 Posted December 8, 2013 Share Posted December 8, 2013 Hi,All is in the topic title thank you for your help Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 8, 2013 Share Posted December 8, 2013 You can use scene.getMeshByName or scene.getMeshById Quote Link to comment Share on other sites More sharing options...
dav74 Posted December 8, 2013 Author Share Posted December 8, 2013 Sorry, but i don't understand how to make the test "if sphere exists" Quote Link to comment Share on other sites More sharing options...
Temechon Posted December 8, 2013 Share Posted December 8, 2013 Try this : if (scene.getMeshByName("sphereName"){ // sphere exists} else { // sphere does not exists} Quote Link to comment Share on other sites More sharing options...
dav74 Posted December 8, 2013 Author Share Posted December 8, 2013 ok thank you Temechon, i'm so stupid ! shame on me Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.