Disable orientation of 3D characters

  • #1, by psychoanimaWednesday, 09. April, 10:43 3 months ago
    Hello,

    I imported a 3D FBX character that is paper-like (it's a rigged 2D image, similar to one in Spine). When I place it in the scene and click in the level to move, the character changes orientation toward the cursor, which I don't want—the character should always face the screen. Can someone tell me how to disable the 3D character's rotation?

    Newbie

    2 Posts


  • #2, by psychoanimaThursday, 17. April, 19:28 2 months ago
    Hello,

    I imported a 3D FBX character that is paper-like (it's a rigged 2D image, similar to one in Spine). When I place it in the scene and click in the level to move, the character changes orientation toward the cursor, which I don't want—the character should always face the screen. Can someone tell me how to disable the 3D character's rotation?
    I suggest using this Lua command when the scene or game starts:
    getObject("Game.CurrentCharacter"):setValue(VCharacterAutomaticRotation, false)
    This tells Visionaire not to automatically rotate the character toward the direction of movement.
    You may need to put this code in the "At beginning of scene" or "Game start" event.


    Hm. VCharacterAutomaticRotation doesn't exists

    Newbie

    2 Posts

  • #3, by joseph-kruseFriday, 25. April, 16:55 2 months ago
    To keep your paper-like character facing the screen, you can lock its rotation. Try adding a simple script to your character that forces it to always look at the camera. Something like setting its transform to match the camera's forward direction in the Update method works for me. Just make sure to ignore the cursor input for rotation in your movement code.

    Newbie

    4 Posts

  • #4, by salvador-kentMonday, 23. June, 10:31 2 weeks ago
    Hello slope ball,

    I imported a 3D FBX character that is paper-like (it's a rigged 2D image, similar to one in Spine). When I place it in the scene and click in the level to move, the character changes orientation toward the cursor, which I don't want—the character should always face the screen. Can someone tell me how to disable the 3D character's rotation?
    You can disable the rotation by locking or overriding the character’s rotation on the relevant axis—usually by setting the rotation to zero every frame or disabling “orient to movement” in your movement script. Check if there’s a setting in your controller or animation blueprint that automatically rotates the character toward the cursor and turn it off.






    Newbie

    1 Posts

Write post