Quantcast
Channel: Questions in topic: "addforce"
Browsing all 1264 articles
Browse latest View live
↧

Throwing object with force

Greetings to all of you i am trying to make my 3d person character grab an object with joints and be able to throw it with force! I wrote this script but nothing works! I am trying to make the script...

View Article


How to move Character with AddForce

Hello Everyone. I wanted to create a physics based movement for my character. [Header("Movement")] public float playerSpeed; public float jumpForce; [HideInInspector] public Rigidbody rb; Vector3 x, z;...

View Article


How to speed up an object with AddForce?

I have a game object that is flying around everywhere. I would like to slow it down, or speed it up with a button or two. I could just do something like: sphere..AddForce(new Vector3(+1, +1, +1),...

View Article

GetComponent.Addforce() not working

I tried both the ways but its not working I am using unity 2019.6.0a3 GVR-1.200.1 public float speed = 4.5f; public float MovementAmplitude = 0.1f; public float MovementFrequency = 2.25f; public float...

View Article

Freeze Position + collision?

I am trying to make a small kitesurf game with (slightly) realistic physics, but struggled in the very start. The idea for now is apply force to the Kite and make it so that the Surfer follows the...

View Article


RigidBody.AddForce() doesn't apply

Hello, I'm working on a top down 2D shooter game. I'm currently working on the bullets, I've created a bullet prefab and attached a Rigidbody and a Bullet script to it. This is the code inside the...

View Article

RigidBody2D AddForce Not Adding Acceleration

I'm trying to add acceleration to an object with a RigidBody2D component using AddForce, but all it seems to do is add a fixed velocity instead. Here are the RigidBody2D settings: ![RigidBody2D...

View Article

How to make a knocback smooth - 2D Unity

This is my very first "game" in unity, first of all i want to apologize for my bad english. What i am trying to do is when my player hits a mob, he gets knockedbacked a few meters away, i did this...

View Article


I need Help with AdForce pls :(

my player uses rigidbody.velocity to move, and also have an alien that explodes, and also has an explosion effect that pushes objects away, look here what the problem is:...

View Article


how to add multiple forces on a single object

my player uses rigidbody.velocity to move, and also have an alien that explodes, and also has an explosion effect that pushes objects away, look here what the problem is:...

View Article

Addforce ignores Rotation ?

So I have a Bullet that I want to disappear after 1 second and instantiate 8 smaller bullets that will fly in 8 directions. Here is an example of 2 bullets: Shott1 = GameObject.Instantiate(Bulle,...

View Article

Controlling a moving non-kinematic rigidbody along a path

I am working on an endless runner game for Android by Unity. I dont want to use a kinematic rigidbody. So physics is involved but the rigidbody is supposed to run along a predefined path by default....

View Article

Unity 2D Physics .AddForce

Hey Everyone, So I am trying to implement knockback functionality for my enemies. When the enemy stands still, the knockback works correctly, but when its moving towards the player, .AddForce seems to...

View Article


AddForce problem !!

Hi, I am making a game in which you a ball (the player) driven forward with AddForce and you must dodge obstacles with AddForce also (the obstacles are cubes on a platform that is generated...

View Article

[Advanced] AddForce Jitter

I've struggled with this question for **years** now and there is no good answer anywhere on the internet as far as I can tell. I am simply trying to take in input from the player during Update() and...

View Article


Swipe and Drag Movement

Hi ! I am trying to make a 3d runner with a ball as a player and obstacles to dodge, I am using AddForce to push the ball forward on ther X Axis and I want to make a movement system (on the Z axis )...

View Article

AddForce knockback x axis according to mouse.position more then y axis (2D game)

(2D game) So my player has an Addforce type of a knock-back in the opposite direction of a mouse position after pressing fire1 button (shotgun effect), and it works, but I want to add more force when...

View Article


,How to change the direction of an already moving GameObject

Suppose a ball is moving on xy plana in the y-direction. I have a box placed in the same xy plane, I want that when I touch the box, the ball instantaneously moves towards the box,no matter what...

View Article

AddForce to x axis when mouse position is close to x axis ? And if closer to...

(2D game) So my player has an Addforce type of a knock-back in the opposite direction of a mouse position after pressing fire1 button (shotgun effect), and it works, but I want to add more force when...

View Article

Adding a force that decreases with the distance from the collision point of a...

Imagine a pressurized air canister strapped to a wheelie chair. The air released from the valve pushes itself and the wheelie chair away from the wall with great speed at first, but as the distance...

View Article
Browsing all 1264 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>