Author Topic: Revolve?  (Read 3414 times)

Plasma

  • Posts: 60
  • Turrets: +1/-3
Revolve?
« on: March 09, 2011, 12:27:03 am »
Okay, How do i give a brush an orbit to follow or how do i make it revolve around a specific point,
and also, how do I change the speed it does this once I accomplish this?

Firstinaction

  • Posts: 638
  • Turrets: +18/-131
    • F1rst16
Re: Revolve?
« Reply #1 on: March 09, 2011, 12:50:35 am »
Well you select that specific brush and press N. Look for function rotation I think.  And you have to use another brush were it would orbit around.  You would link it too each other.   

But wait until another reply because I might be wrong but that's the right track.  .......

amz181

  • Posts: 919
  • Turrets: +64/-93
Re: Revolve?
« Reply #2 on: March 09, 2011, 10:35:27 am »
Lets just say the orbiting object is a planet.

Make your planet.

Where you want the point it revolves around, create a small 1x1x1 brush. Texture this brush with the "origin" shader (it can be found in the common folder)

Select both your planet, and the 1x1x1 brush. In the graph window, right click on one of the highlighted brushes (either the planet or the origin) Then click on func > func_rotating.

In the graph window the planet and the origin brush should now be outlined in blue.

To modify the speed, highlight either the planet or the origin brush (or both) and press N.

In the window that pops up, in the key field, type "speed". In the value field you are going to type a number which will give you a speed. I suggest you just type in "100". Once youve typed in the the key and value press enter. this should put  "speed      100" underneath "classname      func_rotating".

Compile the map and see if its rotating to fast or too slow. Modify the number in the value field accordingly. (note -100 will give you the same speed but in  the other direction.

Ingar

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Re: Revolve?
« Reply #3 on: March 09, 2011, 06:37:46 pm »
Where you want the point it revolves around, create a small 1x1x1 brush. Texture this brush with the "origin" shader (it can be found in the common folder)

The origin brush doesn't have to be small, make it large enough so it is easy to see.
It doesn't have to be a cube either, I usually make a 'stick', like a wheel axis.

Plasma

  • Posts: 60
  • Turrets: +1/-3
Re: Revolve?
« Reply #4 on: March 09, 2011, 09:24:32 pm »
Okay, thanks, does the speed base the speed on the actual movement speed, or is it based on rpm?