x

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"

Setting up a character pawn w/ proper Collision

How would one go about setting up a Pawn derived from class APawn with proper collision; one in which it doesn't fall through the floor? This is the start of myself creating a Pawn that utilizes Steering Behavior using force vectors for movement. What do I do in code to prevent it falling through the ground on placing it into the world and hitting play?

All I have is a simple Capsule Collider as a RootComponent. I tried setting Collision Enabled to Query and Physics and it still falls. Is there another component that needs to be added? I cannot find a real tutorial which sets up a character Pawn via C++ code. Extending through Blueprint advice is also acceptable for me. Thanks.

Product Version: Not Selected
Tags:
more ▼

asked Feb 02 '15 at 10:12 PM in C++ Programming

avatar image

MajinKen
58 17 24 33

avatar image MajinKen Feb 02 '15 at 10:33 PM

I also want to mention that this Pawn is meant to be an AI, so eventually I think there will be an AIController on it. would I need to define a custom movement component for the force vectors to apply on it?

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

1 answer: sort voted first

Inside the capsule component you need to either use the presets or specify how you want it to interact when colliding. default I believe is overlap all but sounds like you want block all.

more ▼

answered Feb 04 '15 at 05:19 PM

avatar image

HailstoneRyan
714 40 27 54

(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