Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

What is the best way to implement an RTS camera?


I'm trying to implement a Camera for a RTS game using blueprint as my logic programming tool.

I've implemented a blueprint Actor called RTS_Camera which is used as my principal pawn. In its components I have a capsule, a SpringArm and a Camera. Implemented movement using the arrows and turn, look up and zoom functionality with the mouse, also made it to shot a ray every tick from the pawn to get the first object it touch to make the camera follow the mesh of the floor, but having problems when trying to ignore other objects that are not the floor.

What would be the best way to implement a RTS camera that follows the floor mesh but ignores other objects in my map?

Thanks in advance

Product Version: Not Selected
more ▼

asked May 25 '14 at 02:17 AM in Blueprint Scripting

avatar image

3 2 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I'm actually working on something similar. This worked for me. In the Defaults of your RTS_Camera, change these settings.

  • Set Collision for all components to Custom preset. Check all Ingore boxes

  • In the Character Movement, set Gravity Scale to 0, Air Control to 1, Falling Lateral Friction to ~ 5 or whatever works best for you, set Land Movement Mode to Falling

Hopefully this helps!

more ▼

answered Jun 03 '14 at 05:47 AM

avatar image

162 11 13 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question