How to Make Ramps: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Robloxinator
>Mr Doom Bringer
Made the article make sense. You can't use a Mesh for ramps, the collision doens't work.
Line 1: Line 1:
This will tell you how to make ramps.
There are two ways to make Ramps which people can walk up or drive up.


==Introduction==
There are 2 types of ramps, one is easy and looks better IMO, one is harder and doesn't look right as it doesn't go in place well. The methods are: Invisible Stair Mesh Ramp (I thought of this name, but I got the inspiration to use this from Are92's Snowbound/Narrows) and the other is called um... I dunno, It uses the command toolbar.


==The Hard Way==
==Using a Hinge==
Make a brick, anchor it and name it "slope". Then open the command toolbar and paste this in:
<pre>
game.Workspace.slope.CFrame=CFrame.fromEulerAnglesXYZ(0,0,0)</pre>
Change the "(0,0,0)" to how many [http://en.wikipedia.org/wiki/Radian radians] (not degrees) you want it to rotate.


'''Due the bug found in "fromEulerAngles", it was spelled wrong; so I made a little edit in the script.'''
Make one small square brick 1x1x1 size. Up on the toolbar click on the little icon for Hinges. This lets you click anywhere and make a hinge on that surface. Click on the side of your brick, and there will then be a small yellow peg sticking out of that side.  


[[User:ZacharyBoyCool|ZBC]] 04:10, 16 February 2008 (CST)
That, right there, is a Hinge. All you have to do is make sure another brick is RIGHT ON THE PEG and it will make a hinge. Anchor that brick you just made, move it up a few studs and make a new brick touching the hinge. The two bricks should sit right next to each other so that you can't see the hinge anymore. When you save and play the game Online, the hinge will let the other brick swing downward, making a ramp.




There are also several tools to do this; mine is called the "Rotator", and it should show up if you search for it. ;) [[User:Jediknightkrazy|Jedi Knight Krazy]] 12:13, 2 April 2008 (CDT)
==Using a CFrame==


You can also paste into the command bar:
Make a brick, anchor it and name it "slope". Then open the [[Command Line]] and type this in:


    game.Workspace.Brick.CFrame = game.Workspace.Brick.CFrame * CFrame.fromAxisAngle(Vector3.new(1, 0, 0), 0.1)
<pre>
game.Workspace.slope.CFrame=CFrame.fromEulerAnglesXYZ(0,0,0)
</pre>


That will rotate the brick slightly upward. Repeat until you get the desired angle. =D --[[User:JustinP231|JustinP231]] 13:35, 3 April 2008 (CDT)
Change the "(0,0,0)" to how many [http://en.wikipedia.org/wiki/Radian radians] (not degrees) you want it to rotate. Radians are a different way of saying how big an angle is. Instead of using [http://en.wikipedia.org/wiki/Degree_%28angle%29 degrees], they use a special numbering system that is best explained by a 10th grade Math teacher. You can use numbers between 1 and 0, which will work fine.


==Invisible Stair Mesh==
Play around with it, you can put the new number in either one of the three zeroes in the line, like this:
First of all, put in a brick and resize it to make it long. Then, highlight the brick and go to insert/object/specialmesh. Go into the specialmesh and change the MeshType to Wedge. Last but not least, resize the brick and make it go higher. Make it as high as you want. That's all! If you have problems contact "richboy1000."


==Conclusion==
<pre>
You should have 2 ramps now, If the top one doesn't work or you can't understand the bottom one, PM me ([http://www.roblox.com/User.aspx?ID=72297 dr01d3k4]) and i will try to fix it. I will add pictures soon so it will be easier.
game.Workspace.slope.CFrame=CFrame.fromEulerAnglesXYZ(0.5,0.9,0.3)
--[[User:dr01d3k4|dr01d3k4]]
</pre>
 
WPM's way of making ramps:
WEDGE MESH!!!
This is very good for making ramps or slanted edges.  
 
 
Change the mesh in properties from head to wedge.
Once again, if you have it too wide and not high enough it deforms. But with the right combination, it will look good!
To make ramps have the brick with the mesh 1 back and 1 high.
Once you have done that copy the meshed brick and delete the mesh from the new brick and place it behind the other.  Group the 2 bricks, hold shift while you click on them both and then Ctrl+G. then copy – Ctrl+C and then paste ctrl-v. Move the new group on top of the other like this.\/
 


You can now do this continually until you have the desired size.  NOTE the blue high lighted area shows that it is exactly like stairs only that you don’t see them so it will look like you character is floating.
Which will make it rotate in all kinds of directions. You can also press enter a couple of times and it will make the brick rotate again, so you can rotate it farther.
   
NOTE – as it is like steps and you can’t climb up massive steps the higher ramp won’t work, it will be like walking into an invisible wall!!! – see blue high light!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Revision as of 23:02, 22 May 2008

There are two ways to make Ramps which people can walk up or drive up.


Using a Hinge

Make one small square brick 1x1x1 size. Up on the toolbar click on the little icon for Hinges. This lets you click anywhere and make a hinge on that surface. Click on the side of your brick, and there will then be a small yellow peg sticking out of that side.

That, right there, is a Hinge. All you have to do is make sure another brick is RIGHT ON THE PEG and it will make a hinge. Anchor that brick you just made, move it up a few studs and make a new brick touching the hinge. The two bricks should sit right next to each other so that you can't see the hinge anymore. When you save and play the game Online, the hinge will let the other brick swing downward, making a ramp.


Using a CFrame

Make a brick, anchor it and name it "slope". Then open the Command Line and type this in:

game.Workspace.slope.CFrame=CFrame.fromEulerAnglesXYZ(0,0,0)

Change the "(0,0,0)" to how many radians (not degrees) you want it to rotate. Radians are a different way of saying how big an angle is. Instead of using degrees, they use a special numbering system that is best explained by a 10th grade Math teacher. You can use numbers between 1 and 0, which will work fine.

Play around with it, you can put the new number in either one of the three zeroes in the line, like this:

game.Workspace.slope.CFrame=CFrame.fromEulerAnglesXYZ(0.5,0.9,0.3)

Which will make it rotate in all kinds of directions. You can also press enter a couple of times and it will make the brick rotate again, so you can rotate it farther.