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: How To Calculate the MidPoint between two points?

Previous Thread :: Next Thread 
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
03 Nov 2017 05:31 PM
A = Vector3.new(3, 2, 5)
B = Vector3.new(45, -1, 2)

I thought it was m = ((x1-x2)/2),((y1-y2)/2),((z1-z2)/2) but apparently it doesn't work. Equation pls!!
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
03 Nov 2017 05:34 PM
A:lerp(B, 0.5)
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
03 Nov 2017 05:37 PM
local mid = (A + B)/2
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
03 Nov 2017 05:38 PM
that or (A-B)/2
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
03 Nov 2017 05:39 PM
plus*
Report Abuse
Scarious is not online. Scarious
Joined: 06 Aug 2011
Total Posts: 508
03 Nov 2017 05:51 PM
A = Vector3.new(3, 2, 5)
B = Vector3.new(45, -1, 2)

Middle = (CFrame.new(A,B) * CFrame.new(0, 0, (-(A-B).magnitude)/2)).p
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
03 Nov 2017 07:21 PM
So is it (A+B)/2 or (A-B)/2?

Y'all are confusing
Report Abuse
vampireboy719 is not online. vampireboy719
Joined: 31 Jul 2016
Total Posts: 36
03 Nov 2017 07:24 PM
A = B, /
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
03 Nov 2017 07:25 PM
use chimmihc's solution who cares if it's plus or minus
Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
03 Nov 2017 07:29 PM
((A - B).magnitude)/2

and I thought it was sqrt((x^2) + (y^2) + (z^2)) but maybe i'm wrong.


attempt to index global 'soul' (a nil value)
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
03 Nov 2017 07:31 PM
also it's (A+B)/2

like calculating the midpoint of two numbers on a number line
Report Abuse
NexanianStudios is online. NexanianStudios
Joined: 16 Jul 2016
Total Posts: 1109
03 Nov 2017 08:18 PM
Get the average of both x’s y’s and z’s
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