I would like to assign my Attenuation asset, but this setting should be enough. Thanks.
Hello, I am again at that problem with tailgate lagging. I tried almost everything and result is that it is impossible. It is realy so? Is really impossible to make car, bed, physics tailgate and emptying animation attached together in any way?
My tries:
- actor(car) + actor(bed+tailgate) = tailgate lags when car move (but everything else works)
- actor(car + (physic constraint + SM tailgate + SM bed)) = tailgate not lags (but canāt use empying animation - if so, tailgate is off the bed)
- actor(complete car) = tailgate not lags (but canāt use empying animation - if so, tailgate is off the bed AND I canāt even add collisions to the bed, because if it is non-root bone and change physics to kinematic then that bone will just fall down - not in the physic asset simulation but in the gameā¦)
ad 3) It is same problem for example with doors - if I will have door bone, add kinematic collision = doors will falls to the ground.
Is there any way how to:
a) ā¦have physic tailgate with emptying bed animation?
b) ā¦have not falling kinematic non-root bone parts?
@rotacak we decided to include an articulated vehicle sample in the next release.
If it will be car + attached bed (with animation up, down) + physics tailgate (without lagging) and that all with collisions then I will bless you ![]()
When I can expect the next release?
PS: Watch out on the SK bed, look what it doing when it is attached (SM bed keeps correct collisions but you cannot animate it easilly): https://www.youtube.com/watch?v=0NqKbnd0LsQ
we will look into it, next release is planned for this month.
here is an updated sandbox demo with an articulated vehicle, press middle mouse button to raise the bed, it lowers when you release.
How are the tests/conversion to the Chaos Physics system going if it is in progress?
we tested chaos with 4.26 preview version(was behaving weird) but epic did not include it in the actual 4.26 release, you need to build from source to be able to use it. there seems to be no need for any api change on our side so when chaos is ready we hope to be able to just use it right away. in theory chaos will change nothing(physics wise) for fgear but it seems to be the key to proper client prediction for replication.
we will release another maintenance build these days and we will experiment on a client authoritative replication option for 1.5 version. we might also recheck the status of chaos in the meantime.
Perfect!
Just two questions:
- The bed is static mesh, right? Is possible to use also skeletal mesh (SK lagged for me everytime)?
- Is there correct collisions of cargo boxes with tailgate when car moving? In the demo it looks ok, but hard to say, because boxes are heavy and car is slow so cargo is almost not moving in the bed.
Canāt wait to see how it is done ![]()
v1.4.2 is available now
CHANGELOG v1.4.2
Override input tick event
Articulated vehicle sample
Fixed changing gear count at runtime bug
Custom collision hide categories are removed
Additional Notes:
-In order to override standard input you had to set inputs from level BP. Overriding input from vehicle BP was not possible but you can override āOverrideInputTickā function now. Check Sedan_BP and Modification.map for an example.
-Sandbox map includes a new articulated vehicle. The skeletal mesh consist of vehicle body and the bed. There is also a tailgate attached which is a separate static mesh component. Both the bed and the tailgate are connected with a physics constraint. Hold middle mouse button down to raise the bed and release to lower it.
-Changing gear count at runtime was problematic due to a simple bug, it is fixed now.
-CustomCollision component had hide category tags with the intention of a clean interface but it seems that can be limiting so we removed them all.
I purchased this today and am loving it so far, when working in the example project. However, I think I am doing something very wrong when setting it up in a blank project and I canāt figure out what it is yet.
**What I do: **
Create a totally new, blank project, using the Vehicle Example starter content.
Create a new vehicle following the quick start guide. (setup bones, skeletal mesh and animbp as default Sedan, steering angle, and camera)
Place in world, auto posses, and start.
What ends up happening is the wheels are totally broken and the camera doesnāt behave exactly as expected. I removed all Axis mappings and matched them to the example project, but itās still completely broken. Iām at a loss as to what I could be doing wrong here, as everything in the Example project works and following my steps 1:1 with the new project shows the expected results. But in the new project itās totally broken.
What step am I missing here that could be causing this?
hi,
for new starters itās recommended to follow the quickstart tutorial with the already included vehicle asset(fgSedan).
after that if you fail with another asset then you could easily compare the assets to find whatās wrong.
itās most likely that the failed asset is either physics asset or the anim bp. for ex. you need to remove any colliders from the wheels.
we already have that default sedan model in the example project, try comparing the assets, let me know if you need more help.
regards.
It was the physics asset that was the issue, thank you, I got it working now correctly!
The only other thing Iāve been looking at has been the AI navigation. I am able to understand and work with the AI navigation for a set track, but is there an easier way to set it up so that it follows or chases the player? Iām looking to basically have the AI chase and ram at the player whenever possible, but proper documentation and discussion on vehicle movement to locations is slim to none. With the slim being extremely vague and not for my use case. Any help or areas I can be pointed to would be a life saver.
ai driver component is not meant to solve your all navigation problems in fact itās not meant to be used for production in the first place. itās there to be a demonstration that you can learn from and to be a prototyping tool. so you need to develop your own tools for navigation.
Okay, that makes sense. Would you be able to provide some information on what I could use to call the targeted spline in the FGear Auto Drive component in a blueprint? I see the option is instance editable, but I canāt seem to figure out what to call from it to assign the spline.
If itās C++ related could I get some detailed instructions on adjusting it, as I am decent in Blueprints, but terrible in C++ coding.
Hi @KoingWolf
Can you add that lines after line 30 in FGearAutoDrive.h and compile.
UFUNCTION(BlueprintCallable, Category = "FGear")
AFGearSpline* getSpline() { return mSpline; }
UFUNCTION(BlueprintCallable, Category = "FGear")
void setSpline(AFGearSpline* s) { mSpline = s; }
You can set spline object to autodrive component in runtime.
Let me know if you have any problems.
I added the lines after line 30 in Visual Studio 2019, saved the .h file, reopened in the Unreal and canāt seem to see any changes yet. I really apologize for my newbness in C++, but what do you mean by āand compileā after making the changes and saving? I donāt have that option under Build in Visual Studio.
EDIT: Changes made to the compiler and reopened the project, but still donāt see Set Spline as an option.
Build->Build solution in visual studio or click compile button to the left of the play button in unreal editor.
Sometimes engine can not detect changes. Pls reopen editor after compile.
Thank you. I tried both of these and still am not seeing the changes. I tried Build Solution, Rebuild Solution, Build UE4, and Rebuild UE4 and restarted after every attempt. I noticed the Compiler button next to Play doesnāt seem to do anything though. Iām investigating that now. Iām also opening the file by right clicking it in the Editor and selecting āOpen [filename]ā under the C++ section.
you can not compile fgear plugin right away like that, you are using the binaries compiled by epic games. to compile the plugin yourself you need to create a C++ project and include fgear files manually to create an additional plugin project. this is not a simple task that i can teach you with instructions, you need to be experienced in C++ in general. my recommendation for you is to develop your own ai code in BP, maybe you can try to convert the auto drive component code to BP.
