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"

Free movement about a vehicle

I have two actors, one is acting as a vehicle for the other, we'll call them the vehicle and the passenger.

The vehicle transform is the parent of the passenger transform and while this covers most interactions between the two it doesn't allow the passenger to move about the vehicle utilizing physics collisions to prevent overlap with vehicle walls and what not.

I need collisions between the passenger and vehicle to behave as if the vehicle was a WorldStatic object, however the vehicle also needs to be able to move and collide with other vehicles which makes WorldStatic not an option for this scenario. I have tried turning on blocking collision for both and it causes passenger movement to have a very large undesired impact on the motion of the vehicle. I need the vehicle to be able to affect the motion of the passenger but the passenger can't affect the motion of the vehicle.

Is there anyway to accomplish this in UE4 as it is?

Product Version: UE 4.8
more ▼

asked Jul 30 '15 at 04:19 PM in Blueprint Scripting

avatar image

26 1 4 3

avatar image Xaeroxe Aug 04 '15 at 05:07 PM

After a lot of careful consideration and prodding with the engine I've decided what I was trying to accomplish defies the engine logic as is. I have redesigned this feature for my game and will not need an answer to this question.

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

1 answer: sort voted first


if i got your idea right you want make a vehiclt with passenger and next realisation advice depend on more details:

if you want make passenger static and not collide with anything else, i think it's simple to disable physics on exist actor in world through blueprint

if you want make passenger not static and able to move and collide inside vehicle on crash (for example), then you need provide more details on how you combine them, possible ways:

  1. add child component into vehicle blueprint at run time with vehicle blueprint, in this case you can change child's properties with functions containing "local" in names

  2. add child component into vehicle blueprint staticly in world editor

  3. attaching passenger actor to vehicle actor (it's the same like drag and drop you static passenger in world into vehicle actor in world actors list, in this case both will be moved when parent actor moves)

hidden collision problems:

  1. when you see vehicle's mesh it doesn't really represent actor's collision, for example in character blueprint collision represented by capsule component

  2. complex meshes (like default blue/white dummy character) don't have real mesh collisions because it would cause too much CPU calsulations, it's still possible to make collision on complex actor right by mesh, but usually UE4 makes simple collision shapes, for example - simple sedan actor probably will have invisible cube collision that prevent actors passing inside, to change collision compexity follow into collision editor https://docs.unrealengine.com/latest/INT/Engine/Content/Types/StaticMeshes/HowTo/SettingCollision/index.html

  3. if your sedan vehicle for example have simple cube collision shape, placing any colliding actors inside launch overlap of course and in this case you can make your passenger of different type physics to prevent colliding with invisible vehicle's cude, at this point if you need make simulation of collision inside your vehicle for passenger make hidden actor cube in vehicle with textures that can be seen from inside cube and not outside, because then you can make collision that will shake your passenger inside box and prevent passenger moving outside of vehicle visually

p.s. don't forget mark question as answered when problem solved, so anyone else later can have same question and may find solution faster, if you find solution on your own, don't forget write it too

more ▼

answered Jul 31 '15 at 04:41 PM

avatar image

576 54 46 72

(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