Box Position, Rotation etc. always 0 - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Bug Reports (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=23) +--- Thread: Box Position, Rotation etc. always 0 (/showthread.php?tid=9977) |
Box Position, Rotation etc. always 0 - technoguyx - 09-02-2012 I noticed this when I wrote a script that involved placing a Explosion object in a Box's position. Since the Position always shows up as (0.0, 0.0) no matter what, the Explosion will always spawn at that point. I'm pretty sure this is a fault from Buildism's part and not mine, though if for some reason this code is wrong, tell me so: Code: local main = script.Parent --player's body. also part transparency should affect any Texture inside it, imo RE: Box Position, Rotation etc. always 0 - Qwertygiy - 09-02-2012 Your problem is trying to adjust the position after putting it in the world. Swap those two lines around and it should work fine. Also, about that transparency thing: characters are drawn in a special way. The body is already fully transparent -- it's just the physics part of the player, not the graphics part. RE: Box Position, Rotation etc. always 0 - technoguyx - 09-02-2012 Why can't I change an object's Position after putting it in the World, then? That doesn't make much sense to me, either. I always see the Position as (0,0) in the object's properties, too, should've explained that clearer. RE: Box Position, Rotation etc. always 0 - Qwertygiy - 09-02-2012 I see it just fine, so something must be wrong on your end then. And as far as I can tell it's just a bug with explosions -- part positions should change normally. RE: Box Position, Rotation etc. always 0 - technoguyx - 09-02-2012 Client-side bug or not, it's definitely something that should be fixed. Can get annoying at times ;P I don't seem to get the Explosion positioning bug, I edited my script as you mentioned, and used the "Events" tab of the object properties, and it works perfectly now. RE: Box Position, Rotation etc. always 0 - Jacob__mybb_import1 - 09-03-2012 An explosion is an effect, not a physical part. The position is set when you add it to the world and can't be changed. It's always a good idea to set all of the properties you can before adding something to the world, since it's more efficient and reduces your chance of running into weird bugs. RE: Box Position, Rotation etc. always 0 - technoguyx - 09-03-2012 (09-03-2012, 02:04 AM)_Jacob Wrote: An explosion is an effect, not a physical part. The position is set when you add it to the world and can't be changed.Oh lol, didn't ever consider the possibility of it not behaving like a physical part. Thanks for clearing that up c: EDIT: ...but I'm still getting the Position = (0,0) glitch. It's particularly annoying now that I'm making a Tool that fires projectiles. >.> nvm it's just me sucking at scripting |