Announcement

Collapse
No announcement yet.

K Actor does NOT collide with anything.

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

    K Actor does NOT collide with anything.

    I am spawning a kactorSpawnable, but it isn't showing collision with anything except the BSP floor from the standard map (it doesn't collide with the center cube thingy)

    Here is my code:
    Code:
    class TheMainBall extends KActorSpawnable;
    
    var TheBallPlayerController MyController;
    
    simulated event PostBeginPlay() 
    {
        super.PostBeginPlay();
        Self.StaticMeshComponent.WakeRigidBody();
    }
    
    
    defaultproperties
    {
        Begin Object Name=StaticMeshComponent0
            StaticMesh=StaticMesh'BallGame_Package.SM_StaticMesh.BG_DummyBall'
            bNotifyRigidBodyCollision=True
            HiddenGame=False
            LightingChannels=(Dynamic=true)
            scale=10.0
            CollideActors=TRUE
            BlockActors=TRUE
            BlockZeroExtent=TRUE
            BlockNonZeroExtent=TRUE
            BlockRigidBody=TRUE
            bNotifyRigidBodyCollision=true
      End Object
    
        Components.Add(StaticMeshComponent0)
        CollisionComponent=StaticMeshComponent0
      
      Physics=PHYS_RigidBody
      bWakeOnLevelStart=true
    }
    What is wrong with the code?

    #2
    You need to double click the cube , and change the collision on the RB channel, " just hit the properties and you will probably automatically find it ".

    Comment


      #3
      or just set the collides with RB channels on the defaultproperties of your mesh. something like this:
      Code:
      RBCollideWithChannels=(Default=true,Pawn=true,GameplayPhysics=true,EffectPhysics=true,Cloth=true,BlockingVolume=true,DeadPawn=True,Clothing=True,ClothingCollision=True,Untitled3=True)

      Comment


        #4
        Thanks for the replies guys! apparently, it was my Static Meshes that werent doing their bit.

        My fix was to simply enable rigid body collision in the static meshes i placed in the level.

        Comment

        Working...
        X