- Home /
Gas molecule movement simulation - simple
So I'm trying to do something really simple even the questions sounds confusing. I basically want to simulate a gas particle - which at the beginning has a random rotation and goes in a random direction with constant movement and when it hits a wall it hits a wall like a normal ball basically. It also needs to be able to collide with other particles.
I've tried a bunch of things which I don't think are worth posting because they didn't work.
Help would be VERY VERY much appreciated!
Answer by TechTayyab · May 07, 2020 at 09:16 PM
Try Particle System and Unity's built in particle system already supports collision. You need to look into the Collision Module that is already on particle systems. See this
@TechTayyab This doesn't seem bad - but I'm struggling with the scripting side which seems like I would still need to write...
What in specific you want to do with actual game object that cannot be done with particle system?
@TechTayyab Well I'm not all that experienced with the particle system but I need the ability to manipulate speed, change direction, mirror the angle when hitting the wall and not have them "disperse" in the way that the particle system does - I want them kinda like just a set amount that each start in a place preferably.
Particle Sytem can do pretty much everything I guess that you need with much less coding effort. Go through this: link text
Your answer
Follow this Question
Related Questions
Rigidbody2D Force Problem 1 Answer
RigidBody2D projectile to target calculation 1 Answer
Convert Force into Velocity for 2D Player Jump 0 Answers
Use Rigidbody2D's Drag to slow down flying character 1 Answer
Make object stay inside circle 1 Answer