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

Rigid body rotation question

Hi, iam working on this game where you sort of fly a rc plane and i have this problem with rotation.. When i try to turn the plane around, it continues flying in the direction it was flying before...

View Article


Moving rigidbody with addforce to certain position

Hello :) I am trying to make a rigidbody(pusher) move back and forth using addforce. The reason for the add force is so that objects on top of the rigidbody move, instead of freeze like using...

View Article


Add Force when level loads

#pragma strict function Awake () { if (Application.loadedLevelName = "menu") { Rigidbody2D.AddForce(Vector2.up * 100); } } I am currently making a 2d game which I am designing the menu for. For my...

View Article

Rigidbody movement with players on platform

In my game I will have a platform with players on top of this with one player controlling the platform and where it moves. I am moving the platform with rigidbody.addforce but I have found too many...

View Article

Character doesn't fall back down when jumping

I am trying to get my character to jump, but when the character jumps, it moves up about 50px above the ground, and doesn't come back down, and I cannot figure out why this is happening. Here is the...

View Article


Conflict between Rigidbody Addforce and Velocity ?

I am using a modified version of RigidbodyFPSPlayer [LINK][1] [1]: http://wiki.unity3d.com/index.php/RigidbodyFPSWalker Here are two statements I am having a lot of conflict in: In this one when player...

View Article

2D Indiana Jones rock not rolling.

Its a simple cylinder that is on its side in 2D and it moves to the right until the end of time. It also rotates. But unfortunately, it doesn't. The rotation works fine, its the movemement thats weird....

View Article

Flight Sim Control

Hi everyone, I'm trying to script basic flight controls for a flight sim I would like to make. I can't seem to get the object to move forward. I want the player to be able to control the speed using...

View Article


Physics AddForce reduced when 3 objects are colliding

I am Going through ETeeskiTutorials fps and I am just finnishing up the Rigid body character controller movement script and I have run into a problem. When my character is running around everything...

View Article


AddForce on GetAxis always sam direction?

I am creating my own roll-a-ball script, and if the player touches the up, down, left, or right key the ball will roll in that direction. The problem is that if I press the left or right key, it will...

View Article

How do I stop an object from jumping VERY high at first?

Hi guys! So I have a problem with my player GameObject. Every time I do my "Jump" command at the **start of the game,** it manages to jump ridiculously high. But after that, it starts jumping normally...

View Article

How do I add a jump function to my current script?

using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public float speed = 200; public float maxSpeed = 5; int moving = 0; float mouseX = 0; // Update is called once per...

View Article

rigidbody2D.AddForce causing other objects to float away

I created a 2D pong style game in which the ball's velocity changes based on a condition. However, as the value for AddForce increases the player objects begin floating away from the ball. Only logical...

View Article


Rigidbody movement conflict?

Hello guys! I've got a problem. When I hold AWSD then hold spacebar, it just ends up with the character getting up a little from the ground then going back to normal, like as if nothing happened! Is...

View Article

3D FPS Projectile

I've created a FPS scene. Player MainCamera Bow ShotPos That's the parent hierarchy of the current setup I'm using. This is the current script: public class FireArrow : MonoBehaviour { public Rigidbody...

View Article


Correct way of calculating forces for rigid bodies

Simple scenario, I want my character to move forward about 2 units a second while walking. Now my current logic is: - Get Y Axis Changes - Multiply By Base Movement Speed - Multiple By Delta Time -...

View Article

Roller coaster physics

I'm working on a side scroller game with a cart on a track. The track has moderate curves (+/- 45 degrees or so from horizontal) and will have some missing tracks so the cart has to jump. The physics...

View Article


Adding Force to a Rigidbody through OnTriggerEnter

This is compliling correctly. The object this is attached to (a boomerang) will go through the object with this script. The object it is hitting is not set to a trigger, and has a rigidbody. I am...

View Article

My character double jumps if he runs, before jumping??

I want my character to just jump once, and it works as long as he doesn't run. If just stand there and jump, he can only do it once (until he collides with the ground again), but if he runs, and then...

View Article

Make objects "tumble" or fall on lose condition - C#

In the block breaker game that I'm currently creating, I'm trying to figure out how to get a lose condition where if the player loses, the blocks that are left on the board will have gravity added to...

View Article
Browsing all 1264 articles
Browse latest View live


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