![]() ![]() So how do we know which order faces which way?īy using what is called the right hand rule it is possible to figure which of the two possible directions the cross product is going in.ġ. We can note from the above image that the order of the cross product matters since it flips the resulting vector. Mathematically the cross product is written as two vectors separated by an `x`. The cross product, sometimes called the vector product, is an operation preformed on two three-dimensional vectors which returns a third vector that is perpendicular to the other two. EgoMoose/Articles/blob/master/Vectors/Cross product.md # The cross product That being said, uncannily I was working on redoing that particular article today. This all happens when you attack an HRP (Humanoid Root Part).I don’t have the original images b/c they were deleted. Then it tells the particle emitter to show for a split second, then tells it to disappear. The first thing this script does is make a variable that finds the particle emitter we just made. You can change that by typing in a different number inside of the wait parathesis.) (Feel free to change the time it takes for the particles to disappear. (Ignore everything except for the stuff between canDamage.Value = false and if canDamage.Value = true then.Īfter it says “hum:TakeDamage(WhateverDamage)” insert this script: local bloodParticle = Step 4 (FINAL): Now find the part of the script that tells the humanoid to take damage if hit with the sword/weapon. (It should be a server-side script named ‘Damage’, ‘Handler’ or something like that.)īefore we start, make sure that your particle emitter and damage script are both children of the sword’s handle part/union, or the script won’t work. Step 3: Next, go find the script that deals damage to the player.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |