cube ramp?

Blitz3D Forums/Blitz3D Beginners Area/cube ramp?

Braden(Posted 2008) [#1]
how would I scale a cube into a small ramp with a 15 degree angle? any length would be fine, i'll just modify it later for the correct size. thanks!


Nate the Great(Posted 2008) [#2]
scaleentity cube,1,.1,10
turnentity cube,15,0,0 ???


GfK(Posted 2008) [#3]
turnentity cube,15,0,0 ???
That's not a ramp - its a rotated cube.

You could do it by manipulating two top vertices to move one edge down.

In all honesty its probably more sensible to create a 'wedge' mesh from scratch. Create a new mesh, add a surface to it, add vertices to the surface (you'll need six), then add polygons.


Andy(Posted 2008) [#4]
Look at the example!

http://www.blitzbasic.com/b3ddocs/command.php?name=CreateMesh&ref=3d_cat


Braden(Posted 2008) [#5]
thanks for the help!