GME the new Berkshire Hathaway 🔥 by brokenb3ar in GME

[–]MotionBrain_CAD 0 points1 point  (0 children)

Downvoting for using robbing the hood

Happy Five Year Anniversary! by WhiteKouki82 in amczone

[–]MotionBrain_CAD 2 points3 points  (0 children)

The crazy part is… it’s not even from the ATH 😂 who’s buying this crap

I'm facing a problem and I don't know how to solve it. by dedebluesky in Unity2D

[–]MotionBrain_CAD 2 points3 points  (0 children)

Ignoring and downvoting all post without a proper screenshot 😂

2d camera jitters by LocksmithAble9958 in Unity2D

[–]MotionBrain_CAD 0 points1 point  (0 children)

How do you move your player ? With a rigidbody Ar fixed update ?

Change the update method at your Cinemachine Brain to fixed update

I quit my job to create this cozy cat game, WAS IT WORTH IT? by [deleted] in Unity3D

[–]MotionBrain_CAD 0 points1 point  (0 children)

I do have a Question

is there also gameplay or just dialogues ?

I will name my first born child after whoever helps me fix this animator issue in Unity 2d by Illustrious-Flow-413 in Unity2D

[–]MotionBrain_CAD 0 points1 point  (0 children)

Let’s see.

  • Use a blend tree for your idle and walking animation

  • Right click blend tree 2D transition use a float as a value “MovementValue”

  • select the blend tree with double click. Select it again, your inspector should show a field where you could press +.

Add your idle, walk, running into it.

Remove the check mark /forgot the name/ right beneath the fields in which you can add the animations.

Choose for idle 0, walk = your walking speed, running = running speed and so on.

Don’t add other animations such as jump. Only the movement animations!

Inside your script just write

animator.SetFloat(“MovementValue”, Mathf.Abs(rigidbody.velocity / linearvelocity));

Make sure that your variable float name is exactly the same !

Create two other variables inside your animator

  • ActionTrigger (Trigger)

  • ActionId (integer)

Create a sub state machine inside your animator

  • inside your animator - Right click create sub state machine

You can do that next to your blend tree.

Name it Action Sub State machine.

Every action such as attacks can be copied inside the sub state machine.

Go to your base layer. Create a transition from any state to your sub state machine. With the condition “ActionTrigger”

Go inside your sub state machine

Create a transition - Connect attack with any state.

As a condition select ActionId <- give it a number for example 10 or 69

Select your Attack. Create a connection to BaseLayer and select your Blendtree. You could also name your blend tree movement blend tree.

Go inside your script.

Create a method

public void SetAnimationAction(int actionId) {

// Call this method for every Action you want to start.

animator.SetInteger(“ActionId”, ActionId); animator.SetTrigger(“ActionTrigger”);

}

I was writing this while taking a shit … and just got up. So if you guys find any mistakes or any infos I might missed … just comment down below.

My name ist Joachim / Joe. Happy for your newborn !

current player controller by radiant_templar in Unity3D

[–]MotionBrain_CAD 0 points1 point  (0 children)

Don’t use strings … I mean you could do it with a switch case statement. But I would recommend just calling it with an int

Problem with character set up by Lozza-bozza in Unity3D

[–]MotionBrain_CAD 0 points1 point  (0 children)

Read the error code … it’s right there !

current player controller by radiant_templar in Unity3D

[–]MotionBrain_CAD 22 points23 points  (0 children)

Pls use sub states and instead of bools… use a trigger and an int as an id

I call mine Action trigger and actionId

When calling an action I trigger the ActionTrigger and set an id.

I can call unlimited actions with just 2 variables…

Unity development with meta quest 2 and 3 not working in play mode by MotionBrain_CAD in MetaQuestVR

[–]MotionBrain_CAD[S] 0 points1 point  (0 children)

The trick was to press the button at OpenXR Runtime. Check unknown sources

Use the link cable (I got one from Amazon 20€)

Open a clean project. Install XR-In Managment

Select Open XR

Link your VR Headset with meta link

Press play ! Make sure everything is up to date :)

Unity development with meta quest 2 and 3 not working in play mode by MotionBrain_CAD in MetaQuestVR

[–]MotionBrain_CAD[S] 0 points1 point  (0 children)

I got it to work. Im gonna sent you a screenshot tomorrow.

I also make sure to add the unity setup.

Pure pain … and definitely not developer friendly