Game Development Community

Particle Orientation: Aligned

by ChromeFly · in Torque Game Builder · 07/25/2010 (2:35 pm) · 2 replies

Hi,

I'm fairly new to TGB--just recently trying to get my feet wet.

Am I mistaken in my understanding of what the particle "orientation" mode "aligned" should be doing? It seems to me that the particles are rotated the opposite direction that they should be. If I have an arrow particle, should the arrow not be pointing radially away from the emission point?

Am I doing something wrong, or is this expected behavior? If so, is there a way to accomplish the "arrow pointing radially away" effect? Thanks!

About the author

Recent Threads


#1
07/25/2010 (4:31 pm)
I always resort to code to get this to work:

%s = new t2dParticleEffect()
  {
    scenegraph = ArcadeScene;
    effectFile = "game/data/particles/arcadeSparks.eff";
    layer = 0;
    size = "32 32";
    position = %position;
  };
  %pe = %s.getEmitterObject( 0 );
  %pe.setAlignKeepAligned( true );
  %s.playEffect();
#2
07/25/2010 (5:07 pm)
Ah, thank you much!