Search the Community
Showing results for tags 'math'.
so on my slope quest... i have two coordinates, one that is right below my avatar, and one that is about 2 meters ahead of it. these are raycast coordinates, shooting out from the avatar's center point. anyway, i have gotten the formula that the angle of the slope is Tan^-1 (slope). and slope = (z2 - z1)/ (x2 - x1). vector p1 = llList2Vector(res1, 1); vector p2 = llList2Vector(res2, 1); float angle = llPow(llTan( (p2.z - p1.z)/(p2.x - p1.x) ), -1); so tangent of the slope to the -1 power. i'm standing
All right, so I have discovered a behaviour I can't quite understand when uploading mesh models. First off, I created two models for testing, one is basically a smaller version of the other, made with the same tools and workflow. Here is what I get for trying to upload the small model: Looks about right, 0.649 Download impact for 1501 Vertices, I can live with that. (I've turned down LODs for this example to make sure they don't influence the calculation) Next off, here is the bigger version... Woops, now that can't be right. I've gone up from 1501 Vertices to 7239, so the mode
Hey, so this is a question to the more experienced math scripters in sl. I understand the principles of trig in math, I understand that to work out say angle X in a triangle where we are given the adjacent value of 3.5 and the opposite value of 2.1 we would use the TAN=OPP/ADJ formula etc etc. However, I am struggling a little in putting this into practice in lsl. I was trying to apply this knowledge by firing out an object but determining the angle of fire by the distance (lets use the above example and say this is the adjacent) it needs to travel and the height (lets say this is th
Hello! I'm pretty new to scripting, in which I mean that I don't know how to at all, lol! I would however like some help learning, or figuring out if there's a script that already exists that I need. So, some friends and I are starting just a mini rp-sim kinda thing that's very loosely based on D&D in which it uses dice rolls, a grid system, and a bit of math to add or subtract health from either players or monsters that they're fighting. Since a lot of them have lower-end PCs the traditional fighting and battle huds won't work for us, since a lot of them require your character to phy