Announcement

Collapse
No announcement yet.

[SOLVED] Getting notifications of RigidBody collisions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Getting notifications of RigidBody collisions

    I have a subclass of KActor, and I want an event when it collides with things.

    event RigidBodyCollision seems to be what I want according to this: http://wiki.beyondunreal.com/UE3:Act...dBodyCollision

    Called when a PrimitiveComponent this Actor owns has:
    -bNotifyRigidBodyCollision set to true
    -ScriptRigidBodyCollisionThreshold greater than 0
    -it is involved in a physics collision where the relative velocity exceeds ScriptRigidBodyCollisionThreshold
    As far as I can tell, I have these set up, and the event is not called for any collisions (KActor-KActor, KActor-world geometry, etc). Is there something else I need to do?

    #2
    As long as you have the correct parameters set in default property for your KActor, it should fire the event. Specifically I'm talking about the bNotifiyRigidBodyCollision and ScriptRigidBodyCollisionThreshold.

    Comment


      #3
      Ok, thanks. I'll keep digging around in what's going on. Looks like there may be some cross-talk between coded DefaultParameters and settings in the editor. At least I know that these are the properties I need to get sorted out!

      Comment


        #4
        There was something goofy going on with the initialization of the StaticMeshComponent. Fixed and working now. Thanks for the tip.

        Comment

        Working...
        X