of     2   
chevron_rightchevron_rightchevron_right

Davidii
#9023045Friday, May 29, 2009 2:04 PM GMT

Ok. Assuming this diagram: Sun [||||] [||||]-----------------------[] Planet [||||] Would this work to return a CFrame 90 degrees positive to the direction between the Planet and the Sun? while true do local current_cframe = CFrame.new(Sun.Position - Planet.Position) local rotation_cframe = CFrame.fromAxisAngle(Vector3.new(0, 1, 0), math.pi/2) local final_cframe = current_cframe * rotation_cframe --This should be the unit between --The sun and the planet + 90 degrees wait() end
Davidii
#9023059Friday, May 29, 2009 2:05 PM GMT

I need to know this because I'm trying to make centripetal motion around the sun to simulate a solar system.
fuggles
#9025204Friday, May 29, 2009 4:19 PM GMT

I'm confused, what do want? Because you can use atan2(p1, p2) to get the angle of 2 positions if thats what you're wanting.
Davidii
#9026517Friday, May 29, 2009 5:22 PM GMT

I want to get an angle, add 90 degrees to it to get a perpindicular line. Ok?
blobbyblob
#9029884Friday, May 29, 2009 7:29 PM GMT

Hrmm... you could use cos and sin to move the planet around in a circle. I wouldn't know how to use a getEulerAngles function, but I should try to make one. =P I already have plans to make it.
booing
#140061294Saturday, July 12, 2014 4:23 AM GMT

I never knew blobbyblob couldn't script. Interesting.
blobbyblob
#140084182Saturday, July 12, 2014 11:51 AM GMT

ow. right in the feels.
coolsamoXD1234
#140087809Saturday, July 12, 2014 1:36 PM GMT

Why don't you just take the X axis from the sun, the Y from the planet, ignore the Z, and merge it all into one CFrame value?
lampwnage121
#140124537Saturday, July 12, 2014 9:01 PM GMT

u necro u
aboy5643
#140130731Saturday, July 12, 2014 10:00 PM GMT

When did booing become such a bad troll lol. @blobbyblob OMG I used to worship you lol
booing
#140133879Saturday, July 12, 2014 10:33 PM GMT

aboy: I'm a bad troll? Really? After everything I've taught, you still continue to try to diss me? Pathetic. I'm leaving this forum forever.
devTree
#140133954Saturday, July 12, 2014 10:34 PM GMT

booing come bak :(
Alyte
#140134230Saturday, July 12, 2014 10:37 PM GMT

i dont really care if he trolls its just annoying cuz sometimes its like *futurama meme* "cant tell if trolling....or just stupid"
aboy5643
#140135780Saturday, July 12, 2014 10:53 PM GMT

Lol yeah this is trolling. "After everything I've taught..." yeah like the fact that instead of making arguments you can show people how they were in the past. Because that's typically how I judge others in a skill, not how they currently are at it.
misgav11
#140150124Sunday, July 13, 2014 1:28 AM GMT

if you want an angle then use tan(rise/run)? math.atan((Sun.Position.Y-Planet.Position.X)/(Sun.Position.X-Planet.Position.X)) + math.pi/2
misgav11
#140150195Sunday, July 13, 2014 1:28 AM GMT

mini mistake :c math.atan((Sun.Position.Y-Planet.Position.Y)/(Sun.Position.X-Planet.Position.X)) + math.pi/2
lampwnage121
#140197709Sunday, July 13, 2014 3:10 PM GMT

Why're you trying to help him when this thread is over five years old?
misgav11
#140240261Sunday, July 13, 2014 11:12 PM GMT

WUT LOL, I JUST REALIZED. WHO THE FREAK BUMPED THIS?
ManuelReload
#140243006Sunday, July 13, 2014 11:45 PM GMT

well you should also "just realize" that there was MULTIPLE replies about how booing necro bumped this... you need to use your eyes mr. sir
RubyQube
#140250013Monday, July 14, 2014 1:01 AM GMT

Hmm trying to figure out seems confusing but I get the idea...
Radiiation
#140260134Monday, July 14, 2014 2:42 AM GMT

--[[This is how you pull off a multi-line text]]--
Radiiation
#140260285Monday, July 14, 2014 2:44 AM GMT

"""Or if you are using python, simply use 3 apostrophes for the multi-line text"""
lampwnage121
#140261118Monday, July 14, 2014 2:52 AM GMT

Who're you even talking to?
Radiiation
#140261496Monday, July 14, 2014 2:56 AM GMT

Davidii. Doesn't know how to use multi-line in LUA.
lampwnage121
#140263213Monday, July 14, 2014 3:13 AM GMT

.-. This post is from 2009 and he isn't trying to make multiple lines of text.

    of     2   
chevron_rightchevron_rightchevron_right