generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Trigonometry problems

Previous Thread :: Next Thread 
Francisl4d45 is not online. Francisl4d45
Joined: 14 Aug 2010
Total Posts: 347
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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
22 Aug 2016 01:40 PM
I don't understand, angle between THREE vectors wat
Report Abuse
Real_Edgy is not online. Real_Edgy
Joined: 23 Oct 2013
Total Posts: 1212
22 Aug 2016 01:42 PM
You make no sense
Report Abuse
Francisl4d45 is not online. Francisl4d45
Joined: 14 Aug 2010
Total Posts: 347
22 Aug 2016 01:48 PM
Make it two then
Report Abuse
Mitko0o1 is not online. 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
SashimiRoll is not online. SashimiRoll
Joined: 24 Dec 2015
Total Posts: 72
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
Francisl4d45 is not online. Francisl4d45
Joined: 14 Aug 2010
Total Posts: 347
22 Aug 2016 02:39 PM
Basically I am trying to make a rotatable turret, but not with CFrame.
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
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
Fluffy_Husky is not online. Fluffy_Husky
Joined: 23 May 2016
Total Posts: 763
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
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
22 Aug 2016 03:21 PM
Lol calling fluffy dumb when your solution is awful.
Report Abuse
LarzCaetano is not online. LarzCaetano
Joined: 26 Aug 2015
Total Posts: 280
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image