Results 1 to 9 of 9
  1. #1

    Default keeping kactor awake

    Hey guys,

    How do I keep a KActor awake at all times? Not just at level start but forever.

    Thanks

  2. #2

    Default

    Once they are awake, they will stay awake. AFAIK.
    I'm making a game!

    http://www.desura.com/games/modulated
    Click the link above to read more!

  3. #3
    Boomshot
    Join Date
    May 2011
    Location
    Chicago
    Posts
    2,215

    Default

    Yep, they're always awake when they're activated.

    Do you just have the settings too low to get good friction from them and it seems like they're not moving?

  4. #4
    MSgt. Shooter Person
    Join Date
    Apr 2012
    Posts
    141

    Default

    Pretty sure you wouldn't want that. They fall asleep when not moving to save perf(massive perf). The switch is just so that it will simulated right at the start of the level, but you don't need to start it awake if it's just lying on the ground.

  5. #5
    Boomshot
    Join Date
    Aug 2011
    Posts
    2,920

    Default

    You can also set the SleepFamily of the mesh's BodySetup to sensitive, but you probably won't be able to keep it awake unless you 'poke' it with forces, contacts or continuously call WakeRigidBody in every frame.

  6. #6
    Boomshot
    Join Date
    May 2011
    Location
    Chicago
    Posts
    2,215

    Default

    Quote Originally Posted by BmB23 View Post
    Pretty sure you wouldn't want that. They fall asleep when not moving to save perf(massive perf). The switch is just so that it will simulated right at the start of the level, but you don't need to start it awake if it's just lying on the ground.
    For all we know he may have a viable reason to have a kactor always awake. They don't HAVE to be used for just random objects laying on the ground that occasionally move if you shoot them.

  7. #7

    Default

    I am trying to get a dynamic trigger to work when it hits a KActor but the trigger only fires when the KActor is awake.

  8. #8
    MSgt. Shooter Person
    Join Date
    Apr 2012
    Posts
    141

    Default

    There's no particularly good reason, if it's always moving it will never fall asleep.

  9. #9
    Boomshot
    Join Date
    May 2011
    Location
    Chicago
    Posts
    2,215

    Default

    Quote Originally Posted by BmB23 View Post
    There's no particularly good reason, if it's always moving it will never fall asleep.
    Scenes that involve zero gravity with things floating and interacting with proper physics? Underwater scenes that may have a constant current moving objects around?

    There's plenty of reasons that someone may want a specific method of doing something. Just because it may have some sort of impact on performance doesn't mean it's not useful. Especially if constantly moving is the desired effect. No one puts a kactor in a scene for it to be asleep all the time and some people may not want that at all. And in his case, the reasoning makes sense as well.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.