Rick Posted December 29, 2009 Posted December 29, 2009 What is the function to get the Vec3 from settings in the editor and apply it to LE functions? I can't remember and can't seem to find an object that does it. Quote
macklebee Posted December 29, 2009 Posted December 29, 2009 What is the function to get the Vec3 from settings in the editor and apply it to LE functions? I can't remember and can't seem to find an object that does it. group:AddProperty("Velocity",PROPERTY_VEC3) local velocity = StringToVec3( self.model:GetKey("velocity") ) Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
macklebee Posted December 29, 2009 Posted December 29, 2009 the StringToVec#'s are inside the scripts/math/vector.lua file... so make sure you include that in your script. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Josh Posted December 29, 2009 Posted December 29, 2009 And it's better to use require() than dofile()! Quote My job is to make tools you love, with the features you want, and performance you can't live without.
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.