Jump to content

Yue

Members
  • Posts

    2,323
  • Joined

  • Last visited

Posts posted by Yue

  1. 3 minutes ago, Josh said:

    ¿Cuándo y cómo se hace esto? ¿En código o en el editor?

    In the editor, the mesh initially has no collider, I drag it to the editor, and then the mesh that is in the assets, I set a collider. But the mesh that is in the editor, the instantiated one shows the collider, but it does not react to the collision physics. 

  2.  

    Description: There is an issue with rotating multi-brush structures using the properties window in Ultra Engine. When selecting multiple brushes that form a single structure and applying a rotation value (e.g., -90 degrees) in the properties window, the brushes rotate individually rather than maintaining their local relationship within the structure. However, using the rotation gizmos in the viewport works correctly and rotates the entire structure as expected.

    Steps to Reproduce:

    1. Create a structure using multiple brushes.
    2. Select all the brushes that form the structure.
    3. Open the properties window.
    4. Enter a rotation value (e.g., -90 degrees) in the rotation field.
    5. Observe the result in the viewport.

    Expected Result: The entire structure should rotate as a single unit, maintaining the local relationships between the brushes.

    Actual Result: Each brush rotates independently, disrupting the structure.

    Additional Information:

    • The rotation gizmos in the viewport function correctly, rotating the entire structure as a unit.
    • This issue is illustrated in the attached images: the first image shows the incorrect rotation using the properties window, while the second image shows the correct rotation using the gizmos.

    Thank you for your attention to this issue. Looking forward to a resolution.

    Best regards, Yue

    image.png.e91cdc3a6d6c306292dae4e349b7061d.pngImagen cargada

  3. I can confirm the same thing, when I am coding in visual Code, and I go back to the editor it is frozen, it does not respond anywhere, I have to restart it.

    When it happens to me I make a video.

  4. --Error here 
        function me:StartPlayer()
            if me.mesh == nil then 
                me.mesh = LoadModel(me.world,"Models/Developer/Generic/generic.mdl")
                me.mesh:SetPosition(0,0.15,0)
    
                me.collider = CreateCylinder(me.world, 0.3, 1.5, 16, 1, 1)
                me.collider:SetColor(1,0,0,0.1)
                me.collider:SetPosition(0,1.1,0)
                me.collider:SetMass(78)
                me.collider:SetCollisionType(COLLISIONTYPE_PLAYER,false) -- Close App.
                
            end 
        end 
    
    function me:StartCamera()
            if me.camera == nil then 
                me.camera = CreateCamera(me.world)
                me.camera:SetDebugPhysicsMode(true) -- Error Here too.**
                me.camera:SetFov(75)
                me.pivotNeck = CreatePivot(me.world)
                me.camera:SetPosition(0, 0, -me.followdistance) -- Set initial position and eye height
                me.camera:SetRotation(0, 0, 0)
                me.pivotNeck:SetRotation(me.freelookrotation) -- Synchronize with freelook rotation
                me.camera:SetParent(me.pivotNeck, true)
            end
        end

     

    I have error when using the commands in Lua script. 

    me.collider:SetCollisionType(COLLISIONTYPE_PLAYER,false)

    and me.camera:SetDebugPhysicsMode(true)

    image.thumb.png.030fef2315d1880ef8d5401330523bc4.png

     

×
×
  • Create New...