Cos creates problems with addforce
Hello, So I am making a 3d game on android and using the accelerometer to move. When I play the game on the phone, it is very hard to control my character because I have to hold my android at 90...
View ArticleMy sphere won't always jump when space is pressed
Hey all! Let's get right to it: I made the roll-a-ball thing, like a lot of people did, and then I started bolting things on, which I assume a lot of people did as well. Here's where I'm currently...
View ArticleAdelaide毕业证文凭澳洲大学毕业证文凭办理阿德莱德大学毕业证成绩单Qwechat875093404学历认证Adelaide University
Adelaide毕业证文凭澳洲大学毕业证文凭办理阿德莱德大学毕业证成绩单Qwechat875093404学历认证Adelaide UniversityAdelaide毕业证文凭澳洲大学毕业证文凭办理阿德莱德大学毕业证成绩单Qwechat875093404学历认证Adelaide...
View ArticleWhy the same line of code works in one place and not in another
So I have this code where I move a ball by either clicking or when a function is called. But it only works with the mouse button. When the function vuela() is started it instantiates a ball and SHOULD...
View ArticleAnimation causes unwanted rigidbody motion
I have a scene where a baseball player is hitting a ball towards a target (fielder). The ball has a rigidbody with use gravity true and with a physics material to make the bouncing as realistic as...
View ArticleHow to move a roulette ball?
I am working on a roulette game. I am having trouble moving the ball in a realistic manner. I have 3 parts in the game **Rotating wheel in the middle** Dynamic friction 0.6 Static friction 0.6...
View Article2D : How to overwrite rigidbody velocity when "skill" input pressed ???
Hi guys, I'm having a hard time figure it out. I'm moving my character by setting is rigidbody.velocity like this : void Update () { var right = inputState.GetButtonValue (inputButtons [0]); var left =...
View ArticlePredicting max jump height of a force impulse
Hi ! I have a rigidbody2D to which I apply this jump routine : IEnumerator JumpRoutine() { Vector2 jumpVector = new Vector2 (0f, jumpForce); // === Velocity Cut === // source :...
View ArticleAdd force based on transform position x value
Hey there fellow unity artists. I am very new to coding and i want to find a solution to my problem. I want to create 2D juggling game which is i need only foot(GameObject with boxcollider2d and moves...
View ArticleAddForce Isn't working?
I have tried looking this question up but it doesn't come up with an answer to my problem so I have some code that should say on start the object has a force applied to it but it doesn't work? and yes...
View ArticleRigidbody2D.AddForce is not moving the object
I'm trying to make a projectile move using its Rigidbody. I've looked at quite a few responses on this forum, but no matter what I try, the projectile does not move. I've tried Vector3.forward * force...
View ArticleAdd Force Problem
I want to have a explode away effect when object die I add the Add Explosion Force by following setting ![alt text][1] but the object just suddenly go up(like just change the position upper without...
View ArticleRigidbody2d addforce isn't moving character
public void Fire(){ IsShot = true; BasePower += MeterPower; Instantiate (Player, CannonEnd.transform.position, CannonEnd.transform.rotation); Player.GetComponent().AddForce (Vector2.right * BasePower);...
View Articlebullet wont move forward
i have this script: var projectile : Rigidbody; var speed = 1; var barrel : Transform; var shots : int = 0 ; var maxShots : int = 1 ; var fwd : Vector3; function Update () { fwd =...
View ArticleNull Reference Exception..Don't know the answer...
Hi, I just installed unity today on my laptop and started with the roll-a-ball tutorial. Everything seemed to work fine until I reached "Moving the player" section on the list. Here is a link to it :...
View ArticleKeep gravity while adding velocity to a Rigidbody?
Little help for a newbie. So I have a player "sphere" which moves around on the x using addforce with the a and d keys. I tried to implement a jumping feature, but I have this issue where the ball, if...
View ArticleForceMode.VelocityChange vs. simply adding to .velocity
I'm in the process of optimising some movement code and I'd like to know if and how the two are any different regarding performance and reliability.
View Articlerigidbody.addforce() flips player
I have an game object that has children that make up a simple car. (I think this is the issue) I used to use transfrom.Translate to move the car around but then I noticed bad effects when colliding...
View ArticleHow do I get objects in front of the player to be blasted away?
I have a scene where there is a first person controller and a bunch of blocks stacked in a wall with a rigidbody. I want to make it so that when the player left clicks, a blast of force is exerted from...
View ArticleCalculate Force needed to push RigidBody to desiref position
I'm actually working in 2d, but still. Lets say I have a RigidBody and I need this body to "jump" to some position. I used to deal with it by calling RigidBody2d.MovePosition(desiredPosition); But this...
View Article