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

Move a rigidbody towards a object without looking at it?

Like the title says, I want a rigidbody to move towards a object in my scene, but I don't want the player to have to look at/rotate towards the object. I was thinking of using addforce but I have no...

View Article


Change rigidbody's jumping speed

Hello, i make a 2d gave and the player is a rigidbody. I use "rigidbody.AddForce(0,300,0)" to make him jump, but I want him to stay less time on air. Like he makes a small vurve from ground to air. In...

View Article


AddForce to the Left?

For some reason my GameObject keeps getting knocked to the right instead of to the front and thats why I wanted to know if I could add force to the left? I am using this line:...

View Article

Is it even necessary to multiply by Time.deltatime in fixedupdate

if im using addforce(#) do i have to make it addforce(# * time.deltatime)... I tried both ways and i get the same results except for the time.deltatime version i have to multiply by like 50 to get the...

View Article

If You add a RelativeForce to an Object like a Sphere, Does Speed ever...

In my test my ball rolls with AddRelativeForce( Vector3.forward * 2500) It takes that force to knock down the brick wall. So it colides and the bricks fall over and then the ball turns the other...

View Article


Bow and Arrow functionality in Unity3d

Hello , I am making a bow and arrow kind of game , similar to http://www.youtube.com/watch?v=cpLlvka6mag&feature=player_detailpage I have made this...

View Article

How do I add force To rigidbody based On Character's Walking direction?

So there's gonna be objects such as balls on the ground in my FPS style game. When the player walks and collides with them, the balls should be pushed. with some force. My Character is character...

View Article

Jumping problem to do with /= magnitude changing the vector3 direction

So I made my own character controller using a rigid body and it works pretty much perfectly. One of the main reasons I made it was so the player could change their speed while in mid air as being air...

View Article


jump script : 2D

hello everyone, I am trying to make my character(Plane gameobject) double jump.. I am developing 2d game and i have animated zombie character running in x-y plane.. My zombie character is not the 3D...

View Article


Add force to a rigid body with raycast

I made a gun script and it works good and stuff but I can't get it to add force to a rigid body with out getting a error. heres the main part of the script var TheDammage = 100; function Update () {...

View Article

Help with coding a simple grapple system - javascript

I don't have much experience coding in java, but I'm familiar with coding itself, as I'm an expert at actionscript3. I need to make a simple-ish dual grapple system (as seen in "Attack on Titan" see...

View Article

Object after instantiate doesn't apply AddForce

Hello, I was instantiating a prefab by UnityOfficial tutorial for Instantiate. All work except "AddForce" command. I wrote script as in the tutorial, but variable ballPrefab I made as GameObject type...

View Article

Can I Addforce to a model while using Animator

I have a model with Animator component. When I try to addforce to this model to make it move forward, it doesn't work. But if I disable the Animator component, it works fine.

View Article


RigidBodys Suddenly Heavier

Hey, I am having a major problem. My RigidBodys seem to have become heavier then before and I have no idea why. This is most noticeable with my Character Controller (which is also a rigid body), but...

View Article

Add force to Child while it's parent rotate around something.....

hello, i have an object that have one child,this object rotate around a tree,when i move the child by typing "tranform.position=vector3.lerp" inside onupdate,everything OK,after moving , the object and...

View Article


Projectiles always going to the left and not forward

Hi, I have a cube that is supposed to fire prefab cylinders which have a rigidbody. However, the cylinders are always coming out of the left side of the cube, instead of the front. I've tried changing...

View Article

How would I go about finding the rotation corrresponding to the force added...

Heyo! I am working on a puzzle game project and in this game I have jump pads that pull you off the ground, what I need to figure out is the rotation at which the character(player) is being shot off...

View Article


Particle System - moving/adding force to the particles

Hi, I have created a particle system effect, which only looks good until it is moved at a certain speed. As far as I understand, when simulation space is set to "World", it leaves the particles where...

View Article

Obtaining Constant Speed with AddForce

Hi, I've recently managed to get my character moving with AddForce However when the character starts moving the speed is slow and when I stop moving the character slides (obviously as it accelerates...

View Article

Why wont my character jump? (using rigidbody and addForce)

Hi all Ive got what seems to be a quite simple question. For some reason i cannot make my character jump from the ground after i started to implement a logic that would prevent him from doublejumping....

View Article
Browsing all 1264 articles
Browse latest View live


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