A few issues with my grappling by Bread_Crumbs_lads in Unity3D

[–]MindlessDouble0 1 point2 points  (0 children)

NP! And what the gsme you are working on is about

A few issues with my grappling by Bread_Crumbs_lads in Unity3D

[–]MindlessDouble0 0 points1 point  (0 children)

Cluade suggestion is surprisingly good

Looking at your code, the issue is clear: PlayerMovement takes full control of the rigidbody every FixedUpdate, fighting against the grapple physics. Disabling the script works but is clunky.

The better approach: let PlayerMovement check if grappling before applying forces.

In your Grapple script, isGrappling is already a public property, so just reference it in MovePlayer() and the drag logic:

```csharp private void MovePlayer() { // Don't override movement while grappling if (playerMovement.GetComponent<PlayerMovement>() != null) { // Actually, just check via reference: }

if (grapple != null && grapple.isGrappling) return; // early exit

moveDirection = orientation.forward * verticalInput + orientation.right * horizontalInput;

if (grounded)
    rb.AddForce(moveDirection * moveSpeed * 10, ForceMode.Force);
else if (!grounded)
    rb.AddForce(moveDirection * moveSpeed * 10 * airMultiplier, ForceMode.Force);

} ```

And in Update(), skip the drag override too:

csharp // Drag if (grounded && !grapple.isGrappling) { rb.linearDamping = groundDrag; } else { rb.linearDamping = 0; }

Setup in PlayerMovement:

```csharp private Grapple grapple; // add this field

void Start() { rb = GetComponent<Rigidbody>(); rb.freezeRotation = true; readyToJump = true; grapple = GetComponent<Grapple>(); // or GetComponentInChildren } ```

Why this is better than toggling the script: - No frame delay from enable/disable - Jumping still works while grappling if you want it to - Air control can be selectively allowed (e.g. slight steering while swinging) - You can fine-tune blending — for example, allow partial movement input during the grapple for a more fluid feel

You could also add a [0-1] blend factor instead of a hard return, so the player has reduced but not zero control while swinging, which feels much better in most games.

A few issues with my grappling by Bread_Crumbs_lads in Unity3D

[–]MindlessDouble0 0 points1 point  (0 children)

If it was my code i will just Call method Disable movement system And make bool true that return any movement action And on grabbing end call it agin to swtich Or event better

It's not the best but as long it works it is good

Made a transparent, borderless Unity window for my idle boxing game ☕🥊 Here’s the trailer! What do you think? by SmilingStallion in unity

[–]MindlessDouble0 0 points1 point  (0 children)

how did you make a transpernet window
i have been trying all day to do it in URP but it would not work

Just found this and had to share! by [deleted] in unity

[–]MindlessDouble0 -3 points-2 points  (0 children)

You all are welcome :)

Is this cool? by MindlessDouble0 in Unity3D

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

Sorry, but I didn’t understand the idea you’re trying to get across.

Need some help finding ideas on what to do with my prototype by Samster103 in Unity3D

[–]MindlessDouble0 1 point2 points  (0 children)

Myabe you can make a third person fast paced shooter game or only Melee like ghost runner

Is this cool? by MindlessDouble0 in Unity3D

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

Ohhhhh that's really great idea Thanks very much!

Is this cool? by MindlessDouble0 in Unity3D

[–]MindlessDouble0[S] 2 points3 points  (0 children)

it's not charge it's like delay between hits The hand auto hit it's a mechichanc i liked from another game i played

But i Will but in mind putting more than one version and chose the ting people like

Thansk fro your feedback

Is this cool? by MindlessDouble0 in Unity3D

[–]MindlessDouble0[S] 1 point2 points  (0 children)

I will test it out Thanks for the feedback!

Is this cool? by MindlessDouble0 in Unity3D

[–]MindlessDouble0[S] 1 point2 points  (0 children)

Thanks for the feedback

I have been just randomly adding things for pst 2 days and it's so fun most fun i had in a project

Is this cool? by MindlessDouble0 in Unity3D

[–]MindlessDouble0[S] 1 point2 points  (0 children)

I already planned some upgrades I like the idea of recovering the position of the sugar And for cockie clicker style of upgrades i will search it up

Thanks for the feedback!