Hey everyone! I'm trying to use ribbons attached to projectiles as laserbeams. This kinda sorta works, but I'm not entirely happy with it as there are some side effects. Most visibly of all, I'm trying to have a whole bunch of projectiles shoot out from a location in a random pattern, and I'm attaching ribbons to those projectiles. This works okay, but the ribbons only start showing up at a certain distance from the projectile origin point. Since I want the appearance of laser beams, the projectiles have to be quite fast. The faster the projectile, the longer the distance until the ribbon shows up: for (%i = 0; %i < 30; %i++)
{
%matrix = "";
for(%j = 0; %j < 3; %j++)
{
%matrix = %matrix @ (getRandom() - 0.5) * 2 * 3.1415926 @ " ";
}
%mat = MatrixCreateFromEuler(%matrix);
%vec = "0.1 0.1 0.1";
%projectile = BulletProjectile;
%muzzleVector = MatrixMulVector(%mat, %vec);
%muzzleVelocity = VectorScale(%muzzleVector, %projectile.muzzleVelocity);
%p = new (Projectile)()
{
dataBlock = %projectile;
initialVelocity = %muzzleVelocity;
initialPosition = %position;
};
MissionCleanup.add(%p);
%ribbon = createRibbon(%proj.client.team.weapontrail, %position);
%p.mountObject(%ribbon, 0); I can't for the life of me take a screenshot as the ribbon rendering appears to be heavily FPS dependent, and any time I activate anything in terms of video recording or screenshots they simply disappear completely. Is there anything I can do to fix this? Or should I just stay away from ribbons for laser effects? Is there a good beam resource that works for the current Torque3D version? (All the links I found are dead...)