Announcement

Collapse
No announcement yet.

[SOLVED] Collision cylinder & mesh aren't aligned - how to align them?

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

    [SOLVED] Collision cylinder & mesh aren't aligned - how to align them?

    I've got a model for my game, and things are almost perfect with it except for one thing - the model is hovering above the ground.

    I believe this is because the CollisionCylinder and the mesh aren't aligned, as "show collisions" in the console suggests, but the only problem is I don't know how to align them properly. Right now, using the WPawnSkeletalMesh, I have a little birdie hovering about two feet above the ground, when I just want it to be *on* the ground.

    Here's my code. I can get the class in full if you need.

    Code:
    Begin Object Name=WPawnSkeletalMeshComponent 
    SkeletalMesh=SkeletalMesh'BirdPackage.Bird_Packed'
    AnimSets(0)=AnimSet'BirdPackage.Armature'
    Animations=MeshSequenceA 
    AnimTreeTemplate=None
    Translation=(Z=2.0)  //this is the line I thought would work
    Materials(0)=Material'EditorMaterials.WidgetMaterial_X'
    LightEnvironment=MyLightEnvironment
    Scale3D=(X=5.00,Y=5.00,Z=5.25)
    End Object
    Any advice?

    #2
    Hi Sammieo
    Did you reset you Xform before importing in from your 3D app?
    There is a cool video on eat 3d that shows you how to lower the mesh in the editor though
    http://eat3d.com/maya_udk_2 about 4:40 in to it might be of use!
    Cheers
    Matt

    Comment


      #3
      Code:
      Translation=(Z=2.0)
      That's 2 unreal units, not feet. Probably needs to be more like 20, and negative.

      Comment


        #4
        Mat-art, that's a real cool link you've given me, thank you for that. Is there a part 3 to that video series? It looks very helpful with my next problem - my PlayAnim() calls in Unrealscript aren't working and I don't have time to learn Kismet for it! (For more details, click here)

        Spoof's solution worked just as well. I dropped the Z translation to around -25 and it looks more like I want it to. Thanks for your help, guys!

        Comment


          #5
          Hi Sammieo
          Here are the links
          http://eat3d.com/free/maya_udk_1
          http://eat3d.com/free/maya_udk_2
          http://eat3d.com/free/maya_udk_3
          I managed to get my character playing custom animations by following these videos and adapting the idea to fit my own needs.
          Cheers
          Matt

          Comment

          Working...
          X