ESP Posted March 27, 2013 Posted March 27, 2013 Lua newby alert self.model = Model:Sphere(0,0,0,0,0,0,10,10,10) gives me - error in function 'Sphere'. argument #3 is 'number';'Entity' expected. Huh? Robin P.s. it would be great if the error messages could be cut and pasted. Quote Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS
beo6 Posted March 27, 2013 Posted March 27, 2013 I am not sure how you come to this syntax. If you look at the documentation here: http://www.leadwerks...odelsphere-r347 the method has 2 parameters. Where the first are the sides of the sphere. If you want to scale it i think you need to call self.model:setScale(10,10,10) 1 Quote
ESP Posted March 27, 2013 Author Posted March 27, 2013 Ahhh. I was getting Model::Sphere and Shape::Sphere mixed up. Cheers for that Robin Quote Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS
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.