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: Does :toObjectSpace() work based on the rotation matrix...

Previous Thread :: Next Thread 
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
09 Nov 2013 11:24 PM
...or just position?
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
10 Nov 2013 12:19 AM
bump
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
10 Nov 2013 04:44 PM
Bump
Report Abuse
suremark is not online. suremark
Joined: 13 Nov 2007
Total Posts: 6315
10 Nov 2013 04:46 PM
It returns a CFrame with position and rotation.
Report Abuse
Ravenshield is not online. Ravenshield
Joined: 21 Nov 2007
Total Posts: 4143
10 Nov 2013 04:46 PM
Both, I'm sure.
I still use CFrame:inverse() * cf, as I've struggled with CFrame:toObjectSpace(cf), but they should do the same thing.


Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
10 Nov 2013 04:48 PM
toObjectSpace() makes it as if the origin is the CFrame provided. So yes it would work, and I don't know why it didn't work when you where doing the stuff with the corners.
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
10 Nov 2013 05:00 PM
Raven, can you tell me more about how CFrame:Inverse * cf works?
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
10 Nov 2013 05:18 PM
Bump
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2013 05:21 PM
You should probably look up at CFrame::inverse()
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
10 Nov 2013 05:22 PM
It returns the CFrame of the object relative to another object's CFrame. Yes, it also considers the rotation.
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
10 Nov 2013 05:52 PM
It doesn't work according to rotation :/

When I have a part and I rotate it, the four points i'm using with object space don't line up with the brick

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