FAQ Database Discussion Community


Emit Particle onCollision in Unity 3D

c#,animation,unity3d,collision,particle-system
I have a character that is going to collide with a coin. When the character collides with the coin, a particle "animation" should occur. Here's my code so far. Some basic assistance would help a lot. This code is attached to the player character. void OnTriggerEnter(Collider _hit) { if (_hit.tag...

HLSL Particle system will not display

c++,directx,directx-11,hlsl,particle-system
I have been trying to add a particle system to my Directx11 graphics demo, and so i have been using the 'Introduction to 3d Game Programming with directx 11' book. Because of this am attempting to use a HLSL StreamOut technique to update the particle system and a separate technique...

Unity - Particles emitting non-random

unity3d,particle-system,particle,trail
I am trying to find a way to emit particles in a non-random direction around and away the object. Using the Cone shape, with an angle of 90, the particles fly away from the object, which is good. However, the particles are emitted at a random point, as seen here....

ParticleSystem issue with enableEmission

c#,unity3d,particle-system
that's my very first question in here (not a first visit searching solution, though ;D). I've got an issue with ParticleSystem in Unity: if (!dead) { dieBang.enableEmission = false; Vector2 newVelocity = rigidbody2D.velocity; newVelocity.x = forwardMovementSpeed; rigidbody2D.velocity = newVelocity; } else dieBang.enableEmission = true; UpdateGroundedStatus (); The problem is dieBang.enableEmmision...

Prevent ParticleSystem from running forever in qml

qt,qml,particles,particle-system
I'm trying to make particles effect in my app, evertything is done great except that i cannot limit the emitter and make it stop from its own without me calling the stop method of the ParticleSystem although i have set the maximumEmitted to 100, for illustration here is my code:...

why doesn't opengl show my fire particles

c++,opengl,glut,particle-system
The question is going to be long but the information is necessary so bare with me, here is main.cpp : class Vector3 { private: float x,y,z; public: Vector3(float thex=0,float they=0,float thez=0) :x(thex),y(they),z(thez) { } float X()const { return x; } float Y()const { return y; } float Z()const { return...

CAEmitterLayer emit continuously in a line

ios,objective-c,iphone,core-animation,particle-system
I am creating a very simple particle system with CoreAnimation. This is my cell: UIImage *image = [UIImage imageNamed:@"spark"]; CAEmitterCell *cell = [CAEmitterCell emitterCell]; [cell setContents:(id)image.CGImage]; [cell setBirthRate:250.f]; [cell setScale:.25f]; [cell setColor:[UIColor colorWithRed:1.0 green:0.2 blue:0.1 alpha:0.5].CGColor]; [cell setLifetime:5.0f]; and layer: CAEmitterLayer *emitterLayer = [CAEmitterLayer layer]; [emitterLayer setEmitterCells:@[cell]]; [emitterLayer setFrame:bounds]; [emitterLayer...