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"

Can`t extend VehicleAnimInstance Class

Hi,

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?

Product Version: UE Github Master branch
Tags:
more ▼

asked Jan 06 '17 at 10:46 AM in C++ Programming

avatar image

edsonsantoro
30 10 13 11

avatar image edsonsantoro Jan 06 '17 at 10:50 AM

It can be a problem on how I'm initializing the proxy, so here is the code attached.link text

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

1 answer: sort voted first

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.

more ▼

answered Jan 07 '17 at 10:32 AM

avatar image

edsonsantoro
30 10 13 11

(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