Can`t extend VehicleAnimInstance Class
The explanation: I`m trying to extend VehicleAnimInstance class which uses a proxy to deal with wheel animations and updates. My goal is to override the PreUpdate method that is inside the VehicleAnimInstanceProxy to call my custom function on a extended class of the VehicleWheel, called AdvancedVehicleWheel.
The problem: The proxy is private inside the VehicleAnimInstance, so I can't access it from my derived class. The function SetWheeledVehicleMovementComponent is local, and I can't override it to create a new function on my own proxy. The WheelData var, which is public, is unnused, so useless.
My try: I created a derived class from VehicleAnimInstance and a new proxy, tried to call GetWheelAnimData, but it returns NULL. I tried to put the SetWheeledVehicleMovementComponent method body inside PreUpdate, and it compiles withoud errors, but, on Engine logical side, the WheeledVehicleMovementComponent.cpp[682 calls it FIRST, to set the MovementComponent and WheelInstances, which is NECESSARY for AnimNode_WheelHandler, and AFTER that, is called PreUpdate. So, still no solution for this.
Any idea on how can I access the WheelInstances from a derived class? Or how can I set it on my own?
asked Jan 06 '17 at 10:46 AM in C++ Programming
Nevermind, found a workaround. If someone need help with this call me and I can share what I did, it's too complicated to explain everything in here.
answered Jan 07 '17 at 10:32 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here