Alignment with line particles
by Adam Griffiths · in Torque Game Builder · 03/14/2008 (6:59 am) · 1 replies
Hello again, no sooner had i solved my old problem i've come up against another one :(
I've got your standard particle effect shooting out balls in every direction but I want to also shoot out lines so it looks like its bursting. I've set it all to aligned so that when it turns the image orientation should change to match the direction its going in.
The problem is though is that the image seems to be turning the wrong way. In other words a straight up line going off towards 45 degrees has been turned 45 degrees counter clockwise instead of clockwise which is the logical way to turn. Makes it parallel to its direction.
I've looked through the engine and found where the particle effects and emitters are created. I think I need the setAlignKeepAligned() function but I don't know how or where to set it? It would be great if i could open up the .eff file in something but nothing seems to be able to read it properly.
I've got several emitter's in this one effect, and i understand i could load up the effect and change the setAlignKeepAligned() function wherever i need the effect but there's no way i can tell when i'm using the level editor which is a real pain.
Also when i run the game and try to even use the get functions, the error message says theres no such function for either get or set.
A very bad example of what i have and need:
| |
/ \ \ /
/ \ \ /
-- -- -- --
\ / / \
\ / / \
| |
Have Need
Has anyone solved this problem before or do they have any idea of what I could do?
Any help would be much appreciated! :D
I've got your standard particle effect shooting out balls in every direction but I want to also shoot out lines so it looks like its bursting. I've set it all to aligned so that when it turns the image orientation should change to match the direction its going in.
The problem is though is that the image seems to be turning the wrong way. In other words a straight up line going off towards 45 degrees has been turned 45 degrees counter clockwise instead of clockwise which is the logical way to turn. Makes it parallel to its direction.
I've looked through the engine and found where the particle effects and emitters are created. I think I need the setAlignKeepAligned() function but I don't know how or where to set it? It would be great if i could open up the .eff file in something but nothing seems to be able to read it properly.
I've got several emitter's in this one effect, and i understand i could load up the effect and change the setAlignKeepAligned() function wherever i need the effect but there's no way i can tell when i'm using the level editor which is a real pain.
Also when i run the game and try to even use the get functions, the error message says theres no such function for either get or set.
A very bad example of what i have and need:
| |
/ \ \ /
/ \ \ /
-- -- -- --
\ / / \
\ / / \
| |
Have Need
Has anyone solved this problem before or do they have any idea of what I could do?
Any help would be much appreciated! :D
Torque Owner Kevin James