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"

[Request] Physics Change Event

Hi there,

I was wondering if the devs might consider adding an "on physics change" event, such that an event could trigger when physics mode changes from walking to falling or something to that effect. Was looking through documentation and Actor.h and didn't see anything like that in there. It was something I really would have liked to see in UE3, too.

(And yes, this is part of a larger request at wanting to have much finer control over physics this generation. :)

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 02:08 AM in C++ Programming

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1986 9113

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:08 AM +

Just to clarify, are you talking about state changes in the Character Movement Component specifically? We have been having lots of conversations about how to make that code more flexible and extensible!

show all comments (comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi Markus,

Thank you for your feedback. I have created a report and added it into our feature request database. If there is any other feature you would like to see in a future build of Rocket, please let us know.

Thank you,

Alexander

more ▼

answered Mar 11 '14 at 02:08 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1986 9113

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:08 AM

I actually added this event on 6/5/2013, I guess it just didn't make it to your build in time. There is now a function on Character:

OnMovementModeChanged(EMovementMode PrevMovementMode)

This existed in C++ for a while, but I added a blueprint notification as well.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:08 AM

Any chance of seeing this on a regular joe-shmoe actor? I would imagine all non-static actors would possess physics of their own, no? At least they did in UE3. Might be useful to do some creative physics handling on non-pawn/character actors as well...

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:08 AM

Well we were talking about walking and falling, which are Character movement concepts now. Normal Actors don't have walking/falling/etc physics. The character concepts are less "physics" and more "movement modes".

There are physics events for touching and untouching objects that you can have on components, which can be on most Actors.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:08 AM

making the distinction between a 'character' and other actors, to me, will simply chain unreal to the concept of an fps creator, both in the engines perseption by potential developrs, and in the reality of working with the engine. myself, and countless others have created games with udk that do not involve a character at all. i dont know your reasoning behind character movement types but it seems slightly short sighted and very restrictive. an actor is an actor, physics is physics, be it a 'character' or not.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:08 AM +

Just to respond to Mick's comment, we have worked to make UE4 less FPS centric, and easier to make your own physics. Rather than a hard coded enum on actor, you can implement your own 'movement component' or just add code to the actors tick function. Rather than have a lot of properties in Pawn that only related to a walking character, we split it out into the character subclass. If you want to make a jetski racing game, you should derive from Pawn not Character, and you have a lot less properties and functions to understand! I hope that helps give some background to the changes.

(comments are locked)
10|2000 characters needed characters left
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