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

Add force with direction

i am trying to add a force to my rigidbody with an angle. Let me explain it. i ll get an angle value 0 to 360 degrees. for example 30 degrees. and addforce that comes with 30 degrees. if i get 180...

View Article


How can I move the ball by arrow

How can I move the ball by arrow , I think the use of addforce ![alt text][1] [1]: /storage/temp/66864-demo.png

View Article


How can I move the ball by arrow

How can I move the ball by arrow , I think the use of addforce Examples games golf games, Penalty games ![alt text][1] [1]: /storage/temp/66887-demo.png

View Article

Suspension Help

I have this script to create a car like suspension but the only problem is that it doesn't have a resting point like a real life Wheel suspension would have, is there anyway where i can stop it acting...

View Article

GameObject falls instead flying horizontally at max height

Seems like a dumb question, but I would like to make my game object falls as soon as it reaches the max height, instead flying "horizontally" at max height, when the force is applied. This is my codes:...

View Article


addforce the force keeps on adding.

Hi there. I want to do, so that the character can jump many times in the air. First jump - normal, next jumps adding force more and more. How fix it? GetComponent().AddForce(new Vector2(0, speed),...

View Article

addforce elevator behaviour

Hello, I think I am missing something, but I didn't see what. So with your help... I ve imported a spaceship fbx by drag & drop into assets. I put the ship in my scene, add a rigidbody, and a...

View Article

Choosing speed and direction of AddForce

Hello! So I'm making a 2D game in which your character has the ability to push things with a Jedi-like force. I've successfully implemented except for one problem: the amount of force (and thus, speed)...

View Article


how to fire my player out of a Cannon?

I finally got the character control working. I made it jump into a cannon lock and loaded which is also working perfectly thanks to a lot of people who guided me in here. I'm very new with scripting...

View Article


How would i apply instant forces on my player/character for instant change of...

EDIT: I'm usinc C# but if you're can answer me only in Java that's okay, ill try to figure out how to do it in C#. Hey, i'm pretty new to scripting and i'm having some trouble with the movement of my...

View Article

Having a OnTriggerEnter make another gameobject Add Force in UnityScript.

Using javascript, I was experimenting with OnTrigger functions with a trigger game object, I thought about triggering another gameobject to add force. Problem is, I don't understand how it would work...

View Article

How to add force on android tap to an object

I'm new to Unity and C# coding and I'm trying to make a "Keep the ball up" game, I've been looking for the code when I click my 'ball' it moves up in the opposite direction that it is hit from(IE. if...

View Article

Rigidbody Addforce cancels out Rigidbody velocity..maybe?

Hello everyone, I like to think of myself of someone who is a little bit above beginner when it comes to coding/scripting in Unity. The problem that I'm having may be simple but I can not find the...

View Article


DontGoThroughThings, Rubberbanding

I'm using the C# script from the wiki http://wiki.unity3d.com/index.php?title=DontGoThroughThings Everything seemed to be working untill I tried to move the ball. I use a script that counts the time...

View Article

Addforce is not working

![alt text][1]I'm instantiating a ball at the start of the scene and I need to come that ball to the screen. But after instantiated it's not moving :( Please help. I'm new to unity. **var...

View Article


Why is force only being added in the same direction?

I am trying to build a boxer who is always looking at the player, and punches *at* the player when in range. The punching is being done with `AddForce`, with the glove's forward as the direction. No...

View Article

How to get spring to settle?

I am building a boxer that can punch. I use `gloveRB.AddForce(glove.transform.forward * 10, ForceMode.Impulse);` to throw the punch and a spring joint to retract the glove. When the glove comes back it...

View Article


Problem: Addforce affects wrong game ogject?

Hello, I am making a simple 2D game and I encountered a 2D physics problem I can't solve my own and I cannot find a similar problem/solution online. A sprite is falling from a pipe. This sprite has not...

View Article

Player is only detected in trigger when moving

In my game I have a switch. The switch has a trigger on it to detect when the player is touching is so that he/she can flick it my pressing 'E'. The weird part is I can only trigger the switch when the...

View Article

Rotate AddForce around a point?

I want to make a AddForce on a ship. That is the power it gives in the water. And I want to know if its posseble to rotate the AddForce? for example +10° right. All comtrolled with a slider. Im new to...

View Article
Browsing all 1264 articles
Browse latest View live