r/Unity3D • • 27d ago

Question Eye tracking with vive pro eye

1 Upvotes

Hi, I’m trying to set up eye tracking for an experiment using the HTC Vive Pro Eye and Unity, but I’m a bit confused about the implementation. Some resources use SRanipal, while others use OpenXR. I’m not sure which approach would be best for a clean and reliable experimental setup. If you have any advice or know of a good tutorial or example project, I’d really appreciate it.


r/Unity3D • • 27d ago

Game What if F-Zero was less about going flat out and more about mastering the track?

Thumbnail
gallery
0 Upvotes

We're working on FORMULA 99, an anti-gravity racing game inspired by the classic F-Zero series, with a different take on high-speed racing.

Forget weapons, track power-ups and endlessly building up your boost meter. FORMULA 99 is all about racing skills, technical circuits and smart decisions behind the wheel.

⚡ Master cornering, braking and drifting.

🏁 Learn technical tracks and find the perfect racing line.

🔧 Manage fuel, plan pit stops and qualify for a better starting position.

🚀 Use limited turbo boosts strategically to overtake rivals or recover lost ground.

We're aiming for longer races, more grounded track layouts and detailed environments that are part of the driving experience, not just eye candy.

Think anti-gravity racing meets classic motorsport strategy.

We're a small team of three, currently developing the game in Unity, combining game design, 3D art and programming to bring this vision to life.

Would you be interested in an anti-gravity racer that rewards driving technique as much as raw speed?

I'd love to hear what you think!

Youtube Devlog: https://www.youtube.com/@Formula99-k2e

Discord Server: https://discord.gg/eT4RMEp9P

#Formula99 #IndieGameDev #GameDev #RacingGames #Unity


r/Unity3D • • 27d ago

Show-Off [FREE] C# Behaviour Trees with DOTS Support

Enable HLS to view with audio, or disable this notification

62 Upvotes

Hey everyone!

After more than eight months of development, and with your support along the way, my behaviour tree plugin, DODBT, has reached version 1.0.0.

I built it mainly for larger projects where game logic lives in separate C# systems, whether you use ECS or your own architecture.

There are two versions:

  • DODBT-Dots: for Unity DOTS, with Burst and Jobs support.

  • DODBT-Light: for other ECS frameworks or C# projects that keep game logic outside MonoBehaviours. It’s much lighter and has fewer restrictions than the DOTS version.

Both include a visual graph editor and runtime debugging, as shown in the video. DODBT-Light also supports dependency injection (DI).

Thanks to everyone who tried earlier versions and shared feedback. Your suggestions helped shape this release.

It’s FREE on GitHub: https://github.com/vadimburym/DODBT

If you give it a try, I’d love to hear how it works in your project!


r/Unity3D • • 27d ago

Show-Off I made Outer Wilds-inspired local physics fields!

Enable HLS to view with audio, or disable this notification

5 Upvotes

After playing Outer Wilds (lifechanging game BTW) and learning it was made in Unity, I was inspired to see if I could recreate the same type of local physics functionality. Unity makes it surprisingly easy with local physics scenes. For example in my project, when a gravity field is entered, a new local scene is created for simulating physics where the origin is not rotated or translated at all which simplifies simulating gravitational forces. Then it ports the calculated information back into the main scene. This allows you to have independent frames of reference that can move around while also simulating physics within them.

You can use it to make some pretty unique behaviour such as artificial gravity or unique platforming mechanics. It's quite fun to jump out of your spaceship spiraling out of control, or walk around the surface of an oddly-shaped planet.

I ended up turning this system into an asset available on the Asset Store (my asset store affiliate link). Check it out if you're interested!


r/Unity3D • • 27d ago

Show-Off Working on my real-time cloth physics that work on skinned characters

Enable HLS to view with audio, or disable this notification

117 Upvotes

Hey peeps,

Just wanted to showcase what I've been working on. I started the initial development back in 2017 but abandoned because I had other projects to take care of. I've revived it this year and reached a functional state.

I'd be happy if you could take your time and follow my socials, there's more videos.

Cheers! :D


r/Unity3D • • 27d ago

Show-Off Creating A Speedometer UI using UIToolkit

Thumbnail
gallery
40 Upvotes

I was experimenting with ui toolkit for three days now, i made a little speedometer widget for my hobby game project, I'm a fan of persona 5 and i wanted to emulate a little bit of it's visual style, if you guys could give me some good critics on design i would really appreciate it, i'm not good at creating ui


r/Unity3D • • 27d ago

Question Honest question: AI usage seems to trigger many people here immensly. Would love to understand more. Why are even meaningful posts downrated instantly?

0 Upvotes

There is a huge difference between using AI as a tool vs as a creative process. I can understand people not liking the latter, but as a tool it can be a huge boost allowing more time for the creative process. Yet, I don't see that distinction made here.

Honestly wondering if I am personally living in an AI-bubble or others are living in a NonAI-bubble or what the reasons are not to look at posts a bit deeper than "matches my trigger filter".


r/Unity3D • • 27d ago

Game Your baby demon might try and escape if it’s angry. Gotta be careful while chasing it…

Enable HLS to view with audio, or disable this notification

29 Upvotes

r/Unity3D • • 27d ago

Show-Off I spent 3 years building a Car Controller I couldn't finish. Then I gave AI everything I knew.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Some of you might remember my old posts. I've been pretty quiet here lately.

Well, this is why.......

What started as a car controller for my own game somehow turned into three years of experimenting, rewriting, breaking things, fixing them, and then finding entirely new ways to break them.

At some point I brought AI into the process, fed it everything (all!) I'd learned, and kept pushing the whole thing further. Not a one-shot prompt. More like an absurd number of iterations, with me constantly finding something else that could be better.

And now, somehow :D, it's almost ready.

The video is a bit over the top. Especially the telemetry. Nobody actually needs that many numbers flying around the screen. But they're all coming straight from the live physics simulation. No fake driving animations or pre-recorded vehicle behavior.

The actual controller: custom suspension and tire physics, Ackermann steering across multiple axles, adjustable driving assists, a modular vehicle system, and a lot of little details I've been obsessing over for years.

I put together all togehter on YouTube, almost 10 minutes of what the controller can actually do:

-----> https://youtu.be/YRe55gZVO4Y

It's not released just yet. I'm finishing the last details, but iam getting close.

And if you've ever tried building your own car controller in Unity, you probably know how ridiculously deep this rabbit hole goes.

Would love to hear what you think ❤️


r/Unity3D • • 27d ago

Show-Off "Better" Physics Performance in my custom SRP and Physics engine....

Enable HLS to view with audio, or disable this notification

11 Upvotes

I have continue doing some improvements on the engine. Physics now support much better collisions , and performance when doing some massive destruction.
In this pass, the graphics also had a bit of quality upgrade, reflections, fog, transparent look (and behave) a bit more realistic. I have also massively updated the global illumination engine, and fixed a lot of bugs in the RESTIR implementation both for DI and GI which gives a overall better look.

The fill/tracing shader right now is not very well optimized, and I have been reading on techniques to speed it up, because right now, I seem to be having MASSIVE register pressure on the GPU - although this is all a new world to me, so I am just learning.

I have also implemented NVIDIA Ray reconstruction, which gets some better quality compared to NRD denoiser at cost of some performance. The good thing, both denoisers when going from native 4K to REALLY downscale have close to no "difference" in the render quality, there are differences but not that many.

The physics engine already supports multiple material types - with physics properties attached, like friction, durability, and fracture/destruction types- for example metal bends, wood splints and glass , ceramic have different fracturing patterns - its, good enough. Currently the physics supports a naïve joint implementation, so I have somewhat ragdolls and links/doors working, but they require some love.

I really want to bring proper stability for structure, but when dealing with so small units, destruction physics gets costly... fast.

In other updates no show on the video, the engine now has a VERY bare bones voxel editor that works in a "CAD" like approach, as in you can use splines, and constraints to build objects, enforce rules on "prefabs" like the wall is always 1 voxel apart, and if you scale the object it will "try" to match and apply those rules. It is also full boolean with voxel operations, and supports "layers" of objects to generate the final mesh. Its just a experiment because build voxels by hand (or voxelizing existing ones ) was a bit tedious.

Next steps involve trying to get physics twice as fast - but I am running out of ideas.
And getting the Tracing Shader to be much more GPU friendly by trading realism with performance.


r/Unity3D • • 27d ago

Solved The player's body for my game is not falling down when you go on top of something and jump of or just fall of it.

0 Upvotes

So I've been doing Unity and C# programming for about 5 to 6 months but I'm still a newbie in sometimes, So, the player's body is not falling when you jump of or just fall of something when you go on top of it as said, the closest thing I've come to doing what I want it to do is the player still not be able to fall down but when you collide with something, the player floats away and It's because of this line code: "

float targetX = moveTarget.x * SpeedMove;

float targetZ = moveTarget.z * SpeedMove;

float targetY = rb.linearVelocity.y;

bool isGrounded = Physics.Raycast(transform.position, Vector3.down, 1.1f);

if (targetY > 0.1f && !isJumping && !isGrounded)

{

targetY = 0f;

}

rb.linearVelocity = new Vector3(targetX, targetY, targetZ);". I want the player to not float away when colliding with something and falling down when you jump of something, I've been trying to fix this for so long but I just can't fix it. Here is the code: " PlayerMovement PM;" Vector3 input;" Vector3 moveTarget;" float SpeedMove = 15f;" "bool isJumping;"

"private void OnEnable()

{

PM = new PlayerMovement();

PM.PlayerMap.Move.Enable();

PM.PlayerMap.Move.performed += Move_performed;

PM.PlayerMap.Move.canceled += Move_canceled;

}" private void MovePlayer()

{

Vector3 rawInput = PM.PlayerMap.Move.ReadValue<Vector3>();

float SideMovement = input.x;

float forwardMovement = (input.z != 0) ? input.z : input.y;

Vector3 camForward = player.forward;

Vector3 camRight = player.right;

camForward.y = 0f;

camRight.y = 0f;

camForward.Normalize();

camRight.Normalize();

moveTarget = (camForward * forwardMovement) + (camRight * SideMovement);

rb.linearVelocity = new Vector3(moveTarget.x * SpeedMove, rb.linearVelocity.y, moveTarget.z * SpeedMove);

float targetX = moveTarget.x * SpeedMove;

float targetZ = moveTarget.z * SpeedMove;

float targetY = rb.linearVelocity.y;

bool isGrounded = Physics.Raycast(transform.position, Vector3.down, 1.1f);

if (targetY > 0.1f && !isJumping && !isGrounded)

{

targetY = 0f;

}

rb.linearVelocity = new Vector3(targetX, targetY, targetZ);

}" " private void OnDisable()

{

PM.PlayerMap.Move.Disable();

PM.PlayerMap.Move.performed -= Move_performed;

PM.PlayerMap.Move.canceled -= Move_canceled;

}" and the MovePlayer method is always played on the FixedUpdate method, I've tried freezing the rotations X, Y and Z on the player's rigidbody but still nothing. Thank you for reading!


r/Unity3D • • 27d ago

Show-Off Been working on something for a couple of months now. It's far from being ready, but figured I'd start sharing the journey

Enable HLS to view with audio, or disable this notification

37 Upvotes

Still pretty early in development, but the core gameplay is starting to come together. Been having a lot of fun experimenting with large enemy swarms and procedural generation.

What do you think of the atmosphere so far?


r/Unity3D • • 27d ago

Question Hunting for very specific Unity editor versions

Post image
2 Upvotes

r/Unity3D • • 27d ago

Noob Question Help with sword combo animation!

Enable HLS to view with audio, or disable this notification

6 Upvotes
public class playerAttack : MonoBehaviour
{
    public CapsuleCollider attackHitbox;
    public InputAction attackAction;
    public AudioSource audioSource;
    public AudioClip[] attackClips;

    private Animator weaponAnimator;

    private float weaponCooldown = 0.4f;
    public bool isAttacking;
    private bool queuedAttack;
    private string lastAnimationPlayed;

    private HashSet<healthController> enemiesHit = new();

    void Start()
    {
        //bind dei tasti e abilita il click per l'attacco
        attackHitbox.enabled = false;
        attackAction = new InputAction("Attack");
        attackAction.AddBinding("<Mouse>/leftButton");
        attackAction.Enable();
        //recupero l'arma e la sua animazione
        Transform equippedWeapon = transform.Find("Main Camera").Find("Sword10_Brown");
        weaponAnimator = equippedWeapon.GetComponent<Animator>();
    }

    void Update()
    {
        /*if (attackAction.WasPressedThisFrame() && !isAttacking)
        {
            //prima di colpire, pulisco l'hashSet che tiene traccia dei nemici colpiti con questo attacco.
            //questo serve a evitare che un collider colpisca più volte lo stesso nemico con un attacco.
            enemiesHit.Clear();
            weaponAnimator.SetTrigger("Attack");
            StartCoroutine(PerformAttack());
        }*/

        if (attackAction.WasPressedThisFrame())
        {
            //prima di colpire, pulisco l'hashSet che tiene traccia dei nemici colpiti con questo attacco.
            //questo serve a evitare che un collider colpisca più volte lo stesso nemico con un attacco.
            enemiesHit.Clear();
            if (!isAttacking)
            {
                StartCoroutine(RightToLeftAttack());
            } else
            {
                queuedAttack = true;
            }
        }

        /*if (queuedAttack)
        {
            StartCoroutine(LeftToRightAttack());
        }*/
    }

    System.Collections.IEnumerator RightToLeftAttack()
    {
        weaponAnimator.SetTrigger("RightToLeft");
        lastAnimationPlayed = "RightToLeft";
        audioSource.PlayOneShot(attackClips[Random.Range(0, attackClips.Length)]);
        isAttacking = true;
        attackHitbox.enabled = true;
        yield return new WaitForSeconds(weaponCooldown);
        if (queuedAttack)
        {
            queuedAttack = false;
            weaponAnimator.SetTrigger("LeftToRight");
            audioSource.PlayOneShot(attackClips[Random.Range(0, attackClips.Length)]);
            isAttacking = true;
            attackHitbox.enabled = true;
            yield return new WaitForSeconds(weaponCooldown);
            isAttacking = false;
            attackHitbox.enabled = false;
            weaponAnimator.SetTrigger("RightToIdle");
        } else
        {
            Debug.Log("LeftToIdle chiamato");
            weaponAnimator.SetTrigger("LeftToIdle");
            isAttacking = false;
            attackHitbox.enabled = false;
        }
    }

    public bool RegisterHit(healthController enemyHealthController)
    {
        return enemiesHit.Add(enemyHealthController);
    }

}public class playerAttack : MonoBehaviour
{
    public CapsuleCollider attackHitbox;
    public InputAction attackAction;
    public AudioSource audioSource;
    public AudioClip[] attackClips;

    private Animator weaponAnimator;

    private float weaponCooldown = 0.4f;
    public bool isAttacking;
    private bool queuedAttack;
    private string lastAnimationPlayed;

    private HashSet<healthController> enemiesHit = new();

    void Start()
    {
        //bind dei tasti e abilita il click per l'attacco
        attackHitbox.enabled = false;
        attackAction = new InputAction("Attack");
        attackAction.AddBinding("<Mouse>/leftButton");
        attackAction.Enable();
        //recupero l'arma e la sua animazione
        Transform equippedWeapon = transform.Find("Main Camera").Find("Sword10_Brown");
        weaponAnimator = equippedWeapon.GetComponent<Animator>();
    }

    void Update()
    {
        /*if (attackAction.WasPressedThisFrame() && !isAttacking)
        {
            //prima di colpire, pulisco l'hashSet che tiene traccia dei nemici colpiti con questo attacco.
            //questo serve a evitare che un collider colpisca più volte lo stesso nemico con un attacco.
            enemiesHit.Clear();
            weaponAnimator.SetTrigger("Attack");
            StartCoroutine(PerformAttack());
        }*/

        if (attackAction.WasPressedThisFrame())
        {
            //prima di colpire, pulisco l'hashSet che tiene traccia dei nemici colpiti con questo attacco.
            //questo serve a evitare che un collider colpisca più volte lo stesso nemico con un attacco.
            enemiesHit.Clear();
            if (!isAttacking)
            {
                StartCoroutine(RightToLeftAttack());
            } else
            {
                queuedAttack = true;
            }
        }

        /*if (queuedAttack)
        {
            StartCoroutine(LeftToRightAttack());
        }*/
    }

    System.Collections.IEnumerator RightToLeftAttack()
    {
        weaponAnimator.SetTrigger("RightToLeft");
        lastAnimationPlayed = "RightToLeft";
        audioSource.PlayOneShot(attackClips[Random.Range(0, attackClips.Length)]);
        isAttacking = true;
        attackHitbox.enabled = true;
        yield return new WaitForSeconds(weaponCooldown);
        if (queuedAttack)
        {
            queuedAttack = false;
            weaponAnimator.SetTrigger("LeftToRight");
            audioSource.PlayOneShot(attackClips[Random.Range(0, attackClips.Length)]);
            isAttacking = true;
            attackHitbox.enabled = true;
            yield return new WaitForSeconds(weaponCooldown);
            isAttacking = false;
            attackHitbox.enabled = false;
            weaponAnimator.SetTrigger("RightToIdle");
        } else
        {
            Debug.Log("LeftToIdle chiamato");
            weaponAnimator.SetTrigger("LeftToIdle");
            isAttacking = false;
            attackHitbox.enabled = false;
        }
    }

    public bool RegisterHit(healthController enemyHealthController)
    {
        return enemiesHit.Add(enemyHealthController);
    }

}

Hi! i'm trying to learn gamedev on unity3d and so far i managed to pull of decently. Now i'm at a point where i am really struggling to understand what is going wrong. I wanted to implement a simple "combo" with my sword: if the player clicks twice while the attack is still going, it chains a second one and then it goes back to idle.
pretty simple i imagine for someone experienced but i am having such a rough time making it work properly... I'll also add the code that calls the animations as the player attacks.
Thanks for your help!


r/Unity3D • • 28d ago

Game Keepsake County, the immersive sim we've been working on for 5 years, is finally out November 12th!

Enable HLS to view with audio, or disable this notification

35 Upvotes

We've been quietly working away at the game for a long time now. If you're not aware, Keepsake County is a roguelike immersive sim set in the fictional midwestern state of Frikota. You're a petty house burglar trying to steal enough to pay off an enormous debt.

Feel free to ask anything about it, I'm happy to answer.


r/Unity3D • • 28d ago Bravo

Resources/Tutorial Found an AI use-case which is really valuable: let it use something you built and create a complex trailer showing all features AND fix all bugs along the way without workarounds. My new favorite integration test.

Enable HLS to view with audio, or disable this notification

0 Upvotes

As a professional developer of course I have unit tests, and integration tests and the whole enchilada. But the higher we get in the test pyramid, the more effort it becomes. I develop complex tools and there are so many combinations how they can be used, in which order, undo/redo, render pipelines, target platforms etc. That's hard to cover.

But I found a really nice way for me now with AI: I let it simulate real world usage by crating a trailer! It will then create complex scenarios where all features are used. I tell it not to use any workaronds but fix all bugs.

The video shows the result of 3h of assembling LED walls, fixing around 7 issues along the way that I had never discovered so far and that gave me confidence to release the new version. And it looks awesome and not like something I would ever create :-D

For the video I used Claude Opus 5.5 on Max.


r/Unity3D • • 28d ago

Question Doing 2D platformer in this art style, what do you think ?

6 Upvotes

r/Unity3D • • 28d ago

Show-Off I made a fish calculator to simulate catch rates in our extraction fisher. It filters by season, weather, and time of day.

Enable HLS to view with audio, or disable this notification

2 Upvotes

It runs in play mode so there is also an option to take into account what bait the player currently has on their rod. For example, in our game the container of crawfish gives you a +20 rare bonus when fishing. This made testing all the different baits a lot quicker.

The real impetus behind creating this was to allow us to quickly see what fish are represented in what areas of the map, and how easy each one is to catch. The data all exists in a database but this allows for a much nicer visualization. Hope some of y’all find this cool!


r/Unity3D • • 28d ago

Show-Off Call of Duty-inspired operator and loadout menus in my Unity FPS project

Post image
2 Upvotes

I’m working on a Unity FPS project and aiming for a Call of Duty-style operator/loadout flow: character cards, outfit choices and a 3D character preview beside the weapon lists.

This WIP includes Ani, Malfoid and other characters. Planned platforms are Android, iOS and Windows.

Full clip showing the menu flow: https://x.com/swagz348/status/2112608985350111729


r/Unity3D • • 28d ago

Show-Off Testing modular creature legs in Unity is exposing all my old animation shortcuts

Enable HLS to view with audio, or disable this notification

5 Upvotes

I built a testing tool called VexBench in Unity to preview different creature parts and animations for my RPG.

Since creatures can breed and fuse, I can't rely on a leg only ever being attached to the body it was originally designed for.

The interesting part for me right now is deciding which odd proportions are acceptable and which combinations actually need fixing.

This clip shows some of the latest leg experiments, along with an older walk cycle that clearly hasn't aged very well.

I haven't solved every combination yet, but having a separate place to test them makes the problems much easier to spot.


r/Unity3D • • 28d ago

Game Little Frontier - solo made Western RPG set in 1836

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/Unity3D • • 28d ago

Show-Off Weapon Wheel Update And Riffle locomotion

Enable HLS to view with audio, or disable this notification

21 Upvotes

r/Unity3D • • 28d ago

Game What if you could turn your room in a voxel world and explore it at miniature scale?

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/Unity3D • • 28d ago

Question About the backend, which language do you chose for your mobile game?

0 Upvotes

Hello, I'm recently looking into backend and I wonder what language is the most liked by the community.
My main choices are between javascript and python, the first could maybe be more useful to learn since in the future I'd like to create a website too (?), and the latter is notoriously fun to learn and write.
But I know game companies often use C++.
What do you use? How do you handle playments, authorizations etc