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: CFrame

Previous Thread :: Next Thread 
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
15 May 2016 02:14 AM
You know if you CFrame something and it goes right into another part? The physics engine automatically places it on-top of the part it does even if the part is uncancollided. Is there a way to fix this?


~~~Da siggy is OP~~~
Report Abuse
Yamno is not online. Yamno
Joined: 10 Jun 2009
Total Posts: 123
15 May 2016 03:11 AM
No, a part would be placed on top of another only if you change Part.Size, Part.Position, Part.Rotation. If you set the CFrame as the last step, it should go into parts.

If you want to set rotation and position, you can use CFrame instead of setting Position and Rotation using a basic combination of

local position = Vector3.new(1,1,1)
local rotation = Vector3.new(math.rad(0), math.rad(45), math.rad(45))
Part.CFrame = CFrame.new(position) * CFrame.Angles(rotation)

just make sure that setting the CFrame is the last step after setting the other properties.
Report Abuse
Destroyerz21 is not online. Destroyerz21
Joined: 29 Apr 2013
Total Posts: 432
15 May 2016 03:18 AM
^
Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
15 May 2016 03:32 AM
So how would I make the above work with :toWorldSpace as I want bricks to spawn right behind the player's torso.


~~~Da siggy is OP~~~
Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
15 May 2016 03:56 AM
I made sure I am not setting any other values after CFrame and it works in Studio but does not work online.


~~~Da siggy is OP~~~
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