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 » Scripting Helpers
Home Search
 

Re: Very advanced scripter/mathmatician needed

Previous Thread :: Next Thread 
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
15 Nov 2011 03:14 PM
Sorry if I'm a little vague here.

I have two points at random places in a Vector3 space. What I need to do is find an oval that's:
- Center lies halfway between the points on the XZ axis
- Center lies on the Y axis of the lower of the two points
- Circumference touches both points
Then, I need to make a Part travel from the first point to the second point, traveling along the oval's edge. I know some basic trig, but I'm at a loss here. Help? Anyone?
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
15 Nov 2011 03:18 PM
Could you possibly draw a picture and upload it? I can't quite tell exactly what it is you're looking for.
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
15 Nov 2011 03:18 PM
I lack a ton in the math portion, but I do know that you can use Vector3's lerp method to find center points
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
15 Nov 2011 03:34 PM
I'm not familiar with the lerp method, I was going to just halve the XZ distance between them and use the lower point's Y axis.
Here's a pic:
http://www.roblox.com/Circle-Path-item?id=65803609
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
15 Nov 2011 03:39 PM
Here's my idea, anyways:
- Find the radius of the oval between the center and point1 and the center and point2
- Somehow (:/) use this to find the vertical radius
- Win from there.
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
15 Nov 2011 03:50 PM
Pre-mature bump.
Report Abuse
IheroYouZero is not online. IheroYouZero
Joined: 23 Mar 2011
Total Posts: 110
15 Nov 2011 04:23 PM
You don't have to worry about 3D since its in 2D anyway. You can just use rectangular coordinates for drawing the ellipse. And the maximum radius would be the two points with the center and just interpolate between the points with the ellipse equation. Maybe you need to define it locally.

Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
15 Nov 2011 04:28 PM
Actualy, it is 3D.
Report Abuse
IheroYouZero is not online. IheroYouZero
Joined: 23 Mar 2011
Total Posts: 110
15 Nov 2011 04:32 PM
It is 3D but still 2D! Because Ellipse is always 2D. What you want is to draw in the Ellipse in XZ axis and then translate the height accordingly based on how much you want the ellipse to be rotated about i.e. angle between the projection of the vectors.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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