Deteriorating force on object?
Making a game where the character moves a certain amount away from wherever I click. I wanted to use a deteriorating force to make it feel like the character is getting knocked back, almost exploding...
View ArticleRigidbody AddForce() stops working after walking away for a while
Hey, I'm having a really annoying problem and I have no clue how to even try to figure it out. I'm moving my character through AddForce() in it's Rigidbody. Here's how the character was set up: ![alt...
View ArticleMesh starts forcing from the wrong axis position
Hello! I'm a newbie to Unity. I imported custom asset into Unity, added rigidbody and movement logic which forces mesh on the particular axis. The rest of them are set 0 in addForce function. The...
View Article,How do i make a D-Pad that functions on AddForce??
I am having trouble making a on-screen D-Pad that functions on AddForce. I have looked up other tutorials but they work on Axis. The reason i need AddForce for my game is because i am making a 3D...
View ArticleRigidbody.velocity seems to be breaking jumping physics
I'm currently creating a character controller script and i'm facing 2 problems: 1. When falling off an edge, the player falls back to the ground in an extremely slow manner. This can't have anything to...
View ArticleForce in AddForce with ForceMode.Impulse insconsistent
Sometimes my player jumps relatively high, but then he jumps relatively low. I tried several methods, but none of them worked. using System.Collections; using System.Collections.Generic; using...
View ArticleAddForce Impulse not moving the object
Hi, I have a prefab object called "Meteor", which is instantiated randomly at the right edge of the screen using a coroutine. The meteor is instantiated through another script, named...
View ArticleWhy does the spindash not launch off to a far distance?
I am making a Sonic-like 2D game and I am trying to get the spindash to work. It seems to charge correctly, but it is as if the way the force is applied doesn't allow the dash to launch off far. When...
View Articlehow should i move a vehicle correctly in unity,what kind of rigidbody physics...
hello I'm new to unity and i stuck for hours searching for a method to move a vehicle but every method has cons because when I use addforce method it does an annoying drifting effect . i tried to rid...
View ArticleHow to make a game object been shoot, on mouse button been clicked, as it...
Hello, all I'm currently working on shooting the game object as it enters an area, and as it enters the area, if the mouse been clicked, that game object would be shot, how to achieve that? public...
View ArticleRigidbody2D Addforce not working on a simulation physics scene
Hello, Im struggling trying to draw a trajectory line on my project, i just followed a tutorial to do that, im throwing a ball based on a Vector2 force that i calculate from the mouse position after...
View ArticleAddForce not working on Y
Hi, so I made an enemy that should jump at player when he is near "attack" range, I used rigidbody.AddForce to do that. When I add force x and z works perfectly but when I do y it doesnt do anything....
View ArticleRigidBody Addforce While using Moveposition
Hi! I am attaching a rigidbody to a character and controlling it using moveposition. I want to push the character using Addforce. When I press U, my character is Addforced. if...
View ArticleDoes ClampMagnitude override AddForce?
I have a script that uses Vector2.ClampMagnitude which allows an enemy to chase my player around. When the enemy takes damage, I am using Rigidbody2D.AddForce() to knock him away, but this part of my...
View Articlebullets don't go forward
I need help, my bullets when they start colliding with objects deviate the next time they are activated. I do not understand why my code is: [Header("ObjectPool")] [SerializeField] GameObject...
View ArticleIs there a way to code this diagonal force?
Quick and simple Q for those who know: A projectile is being fired from a weapon (think: grenade launcher for planting trees). Writing these two lines is just not working? If I remove the other, the...
View ArticleHow to get Vector3 of force that WILL BE applied to Rigidbody with AddForce()?
(sorry for poor english) I have rigidbody that have RigidbodyConstraints.FreezeAll and external force (in my case its ExplosionForce) that i need to accumulate on this rigidbody and apply when...
View Articleissue with the rigid body x axis ,addforce doesn't work as it should for x axis
This piece of code attached to a bullet game object that is supposed to get the distance between the other player and bullet and move the other player in the opposite direction only works properly...
View ArticleArea setting when moving rigidbody
I'm moving the rigidbody to mousedrag, If the rigidbody is out of the square area, I would like to avoid further mous dragging. Create a square area with a plane 3d object and Is it possible to specify...
View ArticleIssues when using Rigidbody force to Move/Carry Objects
Hi all, I am having some issues when changing my Object Carrying Method from a Static Locked position attached to the player to a more fluent movement that also has physics so carried objects cannot...
View Article