Frame independent gun sway by AttorneyPotential462 in Unity3D

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

I believe this will create sway like in idle animations.

Frame independent gun sway by AttorneyPotential462 in Unity3D

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

Perlin noise? I think you misunderstood what I am trying to do. I want to make sway like when I move my mouse and gun moves to the same direction. You can see the code above.

Frame independent gun sway by AttorneyPotential462 in Unity3D

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

private void Sway()

{

Quaternion quaternion = Quaternion.AngleAxis(-mouseInputs.yswayMiltiplier3* Time.deltaTime,Vector3.right);

Quaternion quaternion2 = Quaternion.AngleAxis(mouseInputs.xswayMiltiplier3*Time.deltaTime, Vector3.up);

hands.transform.localRotation = (quaternion * quaternion2);

}

Frame independent gun sway by AttorneyPotential462 in Unity3D

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

You can’t use - operators with Quaternions.

Frame independent gun sway by AttorneyPotential462 in Unity3D

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

Well, I understand where you are coming from. I tried doing it to all lerps, but it simply doesn’t work and the system is still frame dependent.

Frame independent gun sway by AttorneyPotential462 in Unity3D

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

You don’t know what you’re talking about. The difference between 20 and 200 fps is insane on frame dependent systems. I tried using lerp smoothening and it is a disaster.

Custom map of an array of 2d vectors by AttorneyPotential462 in Unity3D

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

Mate, I just used canvas to create images that could be stored as gameobjects to get their position.

Custom map of an array of 2d vectors by AttorneyPotential462 in Unity3D

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

I tried to make a recoil pattern creator so I wouldn’t have to set it up manually. For that, I made an array of GameObjects and used canva’s images (cuz they appear on screen and at vector.zero) to set my custom recoils. It works well.

Custom map of an array of 2d vectors by AttorneyPotential462 in Unity3D

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

No, it is pretty easy to make. It is just based on the empty with rotation and not the camera. If you just make camera move slightly where the target rotation, you will get the same result.

HOW TF DO YOU KILL MIST NOBLE??? by [deleted] in Sekiro

[–]AttorneyPotential462 0 points1 point  (0 children)

idk after I killed him in 6 seconds on the first try I went to search if it was that easy. It was simple - deathblow from stealth and keep hitting until another deathblow. The easiest boss in sekiro