Quantcast
Browsing all 173 articles
Browse latest View live

Rotating Platform Slows Down Upon Collision

I have a script to rotate a platform: using UnityEngine; using System.Collections; public class RotatingPlatform : MonoBehaviour { public float speed = 10f; public float baseSpeed = 10f; void Update ()...

View Article


How can I rotate a shooting-practice target 180 degrees with a timer in C#?

I'm trying to create a shooting range with targets that pop out from the ceiling at random. Preferably, they would rotate sideways from their initial position [UP] (from 0 to 180 degrees) and then back...

View Article


rotation not working - object stands still regardless of new vector

in movement.js file update(){ //SUPER inefficient way of doing this, I know birdPosition = transform.position; } in another file I have where I want the turning to happen I have var faceHere =...

View Article

Rotation for 180 degrees of character

Hello I want to make a game where my character will move around planet. My character can go around planet only ahead or backwards and he is shooting by gun. Script for player rotation on planet:...

View Article

character rotates when using third person controller!

hi there,i have a rigged character with some scripts attached to it,the scripts are the character controller and the third person controller animation... i have also added some animations to it,every...

View Article


How do i rotate a gameobject

EXAMPLE: everytime i press/hold 'D' the player turns 90 degrees right and moves in that direction if held (like i want it to) but when i press 'D' again it will turn 90 degrees again so the gameobject...

View Article

2D Physics Rotate Sprite Level With Floor

I need to, using the 2D Physics, make my player rotate so that it is level with the floor. I've seen solutions before, but all of the use 3D Physics. I'm using 2D Physics and my camera is facing...

View Article

I want an arrow that aims at the player but it only works in 90°

Hi! I have an arrow that is suppose to aim at the player but it only works in 90°. For example if the player is above the arrow the arrow aims upwards and if the player is next and above the arrow the...

View Article


transform.rotation only y axis?

Hy, i want to rotate in javascript a planet. In this time the Earth is this planet, and it has a constans 23.5 degree X axis rotation, and must 0 degree z axis. My problem: simple transform.rotation...

View Article


Rotating a camera aroud his x axis

Hello guys, I am working on a game a I have made a CCTV camera with a alarm system attached. But i want to rotate the camera so that players can sneak past a camera? I'm starting with code, so ive got...

View Article

how can I add a bonus rotating for a joint by scripts?

Hello, I would like to add a bonus rotating for a joint. Bonus means that the joint si rotating by model animaton, but I would like to insert the mouselook by scripts. So If the player moving (imagine...

View Article

How to not go below the grid in scene view

I'm a new user to Unity and I was wondering if there was a way to make it so that it **won't** let you go below the grid while rotating or strafing in the scene view? I'd also like to know if there was...

View Article

Split Rotation and Moving of a NavMeshAgent

Hi, my dynamic GameObjects use a NavMeshAgent to move on a NavMesh. My problem: the rotation is done over the duration of the move - i want to rotate the unit BEFORE any move starts (best would be a...

View Article


rotating player 180 degrees

I was wondering how would i rotate my player 180 degrees in C# over fix amount of degrees after a key is pressed and can only rotate again after 180 degrees is reached. My problem is whenever i press...

View Article

How to rotate an object so it always faces up?

Hi, I have a road tool that when I click and release the mouse button it creates the mesh and rotates it so the road starts and ends where the mouse events occurred. However, when I build a road on a...

View Article


rotating to mouse location

i tried to rotate the arm in my main character to the mouse location but instead my code manges to rotate it in some weird direction 'when the character' moves only.. note: im not sure if this will...

View Article

Roatate animation starts from 0

Hi, I have coins in game, out of 3 coins first one's Y rotation is 0 , second ones Y rotation is set to 60 and third ones Y rotation is set to 120 I have attach animation clip to it which rotates the...

View Article


Weird Output from AngleAxis

Quaternion.AngleAxis is giving me weird output/rotation when Im using it to set the rotation of my player object to look at my mouse in a 2d X/Y Plane. Here's a snippet of where the problem is believed...

View Article

Inverse Rotation in Child Object

Hello I made a model in blender (Boss1Ship) which has three children (laserCannon, laserCannon2, laserCannon3). The rotation of parent(Boss1Ship) is fine but the rotation of each child is inversed....

View Article

Rotating Wrong

when the AI moves towards me it rotates forward for some reason, same as when it sees my player if I move it'll tilt the model forward a little and then when he chases me it doesn't work very well it...

View Article
Browsing all 173 articles
Browse latest View live


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