Disable orientation of 3D characters

  • #1, by psychoanimaWednesday, 09. April, 10:43 2 weeks 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 A week 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 4 days 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 sam-watersTuesday, 29. April, 04:27 2 hours ago
    Some entertaining and relaxing games available include Skribblio. Use little victories to have fun and unwind, therefore releasing tension.

    Newbie

    2 Posts

Write post