|
| 22 Aug 2016 01:29 PM |
| How can I find an angle between three vectors, when the angle is more than 90 Degrees? |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 01:40 PM |
| I don't understand, angle between THREE vectors wat |
|
|
| Report Abuse |
|
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
| |
|
| |
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 22 Aug 2016 01:51 PM |
| Well check the rotations of the both vectors and use it I guess. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 01:55 PM |
Three vectors doesn't make sense. If u want two then check this out
http://wiki.roblox.com/index.php?title=Dot_product |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 02:39 PM |
| Basically I am trying to make a rotatable turret, but not with CFrame. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 02:40 PM |
Why not just (rotation-rotation2), rotation's being the rotation on the axis you need? And then add that to the current angle of the turret?
-R.B. Box (Regalius Boxikins Box) |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 03:18 PM |
why would you make a rotatable turret that doesnt use cframe tho
cframe would make it look better
are you purposely trying to avoid it then? |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 03:20 PM |
@fluffy
are you dumb there are a bunch of ways to make it smooth even some that replicate smoothly on the server gtfo
-R.B. Box (Regalius Boxikins Box) |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 03:21 PM |
| Lol calling fluffy dumb when your solution is awful. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2016 03:22 PM |
In my conception, it would be
local x0,y0,z0=v0.x,v0.y,v0.z local x1,y1,z1=v1.x,v1.y,v1.z local m0=(x0*x0+y0*y0+z0*z0)^0.5 local m1=(x1*x1+y1*y1+z1*z1)^0.5 local co=(x0*x1+y0*y1+z0*z1)/(m0*m1) local angle=acos(co) bang...
or you can do something with atan2 |
|
|
| Report Abuse |
|
|
sayhisam1
|
  |
| Joined: 25 Nov 2009 |
| Total Posts: 2092 |
|
|
| 22 Aug 2016 03:22 PM |
| I didn't use CFrame for my tanks, because I wanted to preserve collisions and roblox physics. |
|
|
| Report Abuse |
|
|
sayhisam1
|
  |
| Joined: 25 Nov 2009 |
| Total Posts: 2092 |
|
|
| 22 Aug 2016 03:23 PM |
Also, for angle between two vectors:
cos(theta) = u:Dot(v) / (u.Magnitude * v.Magnitude)
Where u and v are two vectors.
|
|
|
| Report Abuse |
|
|