Rick Posted December 8, 2009 Posted December 8, 2009 I must be missing something. I can't seem to get my camera to point at another entity using PointEntity(). I know I have the camera object and the other object because I can set the position of my camera to the position of the object, but when I try pointing my camera to this object it doesn't seem to work. What am I missing? I'm using the fpscontroller.lua but I commented out any camera movement/rotation code in there. m = GetEntityByName("pivot01") PointEntity(fw.main.camera, m, 3, 1.0, 0.0) Quote
josk Posted December 8, 2009 Posted December 8, 2009 In Blitzmax I have pointentity (fw.Main.camera,marine:TEntity,3,1.0,0.0) and it works fine. In Lua according to the wiki its entity:Point( entity, axis, rate , roll ) Quote Elite Cobra Squad
macklebee Posted December 8, 2009 Posted December 8, 2009 In Blitzmax I have pointentity (fw.Main.camera,marine:TEntity,3,1.0,0.0) and it works fine. In Lua according to the wiki its entity:Point( entity, axis, rate , roll ) Josk, where is this in the wiki for the lua form? ***edit- Ah found it-PointEntity There are so many different pages for a single command in the wiki, you just never know what you are looking at it is correct... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Rick Posted December 8, 2009 Author Posted December 8, 2009 Josk, where is this in the wiki for the lua form? ***edit- Ah found it-PointEntity There are so many different pages for a single command in the wiki, you just never know what you are looking at it is correct... Ah perfect, thanks guys. I keep forgetting that's how he set it up. Quote
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.