on-internet

Why does my Unity projectile code cause it to move backward instead of where my camera aims?

I have a projectile attack I've given to the player in a Unity 6.6 game I'm working on. The projectile is meant to fire in whatever direction the player's camera is looking, but whenever I try to shoot it straight forward the bullet instead flies backward and upward. It seems like shooting any further up or down works just fine though, only when firing straight forward does this happen. What might be causing this issue, and how I can fix it? Here's the script I used for the projectile prefab: using UnityEngine; [RequireComponent(typeof(Rigidbody), typeof(Collider))] public class Projectile3D :

Join the discussion →

Projectile Issues

I have a question about the projectile attack I've given to the player. The projectile is meant to fire in whatever direction the player's camera is looking, but whenever I try to shoot it straight forward the bullet instead flies backwards and upwards. Shooting any further up for down works just fine though. Does anyone know what might be causing this issue and how I can fix it? Here's the script I used for the projectile prefab: using UnityEngine; [RequireComponent(typeof(Rigidbody), typeof(Collider))] public class Projectile3D : MonoBehaviour { public int damage = 10; public float speed = 2

Join the discussion →

Unity 6.6 Projectile Issues

Back again with another question about the Unity 6.6 game I'm working on, this time its about the projectile attack I've given to the player. The projectile is meant to fire in whatever direction the player's camera is looking, but whenever I try to shoot it straight forward the bullet instead flies backwards and upwards. Shooting any further up for down works just fine though. Does anyone know what might be causing this issue and how I can fix it? Here's the script I used for the projectile prefab: using UnityEngine; [RequireComponent(typeof(Rigidbody), typeof(Collider))] public class Project

Join the discussion →

How to lcoate a specific context menu item using androidx.test.uiautomator?

I am developing a few UI tests using Android's UIAutomator. For one of them I want to long-click an item and then select a menu-entry from the appearing Context-Menu of said item. I would prefer to be able to select the menu-item using the id from the "R"-file (like "R.id.xyz"), i.e. I want to be able to write something like item.longClick(); // select item's context menu UiObject2 menuEntry = findMenuEntry(device, R.id.ctxt_duplicate); menuEntry.click(); where findMenuEntry() would be a utility method like: public static UiObject2 findMenuEntry(final UiDevice device, final int id) { final Sea

Join the discussion →

Gitlab: allow the include of another project's md file into a project's readme

In order to simplify the usage and updates of several parts in my projects' README.md, I was wondering if I could create a public repository with those parts, and include them from the different project's readme. I succeeded in importing local md files in the readme, but I'm failing to allow the inclusion of URLs like mentioned here : https://docs.gitlab.com/user/markdown/#includes What I cannot understand is the URL in [this example](https://docs.gitlab.com/administration/wikis/#through-the-api-1) (Linked in the first link I mentioned). What should I replace the `https://gitlab.example.com` u

Join the discussion →

US Intelligence Chief Predicts More Tech Outages As Systems Undergo Upgrades

Director of National Intelligence Jay Clayton warned Sunday that Americans should expect more technology outages as companies and government agencies modernize aging infrastructure. Speaking on CNN, Clayton said the upgrades are necessary to improve performance and cybersecurity but will inevitably cause "glitches, gaps, [and] interruptions in service." Reuters reports: A string of technology failures this month disrupted critical U.S. systems, including a nationwide halt to air travel, a Microsoft outage that hit email services, a technical glitch that affected several major banks, and a temp

Join the discussion →

Want clean power for data centers? Try giant heat batteries.

submitted by betanumerus to technology 4 points | 0 comments https://www.canarymedia.com/articles/batteries/24-7-clean-power-giant-heat-batteries Think tank Energy Innovation proposes a faster, cheaper, and cleaner route for powering off-grid data centers: giant heat batteries that are fueled by low-cost solar and wind.

Join the discussion →

How to read dates from mixed cells types in axyra

While building a tool which iterates on every cell in a spreadsheet using Axyra, I have encountered issues retrieving dates in cells. The iterator itself is pretty simple, I find the entire set of cells from sheet.usedRange() and iterate of that to retrieve cell values. I also already know where the Dates are supposed to be (which columns), so I am not trying to figure out if a random cell is or isn't a date. The relevant thing I check for when normalizing is dates, to allow excel to sort and filter them using table headers, and to ensure that the dates in sheet are valid dates (withing expect

Join the discussion →

i am trying to make a faux voting system but it wont deny non-acceptable answers (SOLVED) [duplicate]

no matter what i have tried so far, it just wont deny non-valid answers (say if you were to put F in) vote=input('Please input your vote, A, B, C, or D. ') if vote == 'A' or 'B' or 'C' or 'D': print('You voted for ', vote,'!') else: print('Please retry with a valid vote. ') #i was able to figure it out vote=input('Please input your vote, A, B, C, or D. ') if vote == 'A' or vote == 'B' or vote == 'C' or vote == 'D': print('You voted for ', vote,'!') else: print('Please pick a valid vote next time. ') #the fixed code

Join the discussion →

Nvidia Reinstates Jensen Huang As CEO

Zak3056 shares a report from CNBC: Nvidia on Monday announced Jensen Huang has been reinstated as CEO, effective immediately, a dramatic twist in a scandal that hammered the chipmaker's stock price and rocked tech and artificial intelligence industries. The board of directors said it unanimously voted to reinstate Huang following "a series of discussions and meetings" with him. The board added that it "received input from senior levels of the United States government" that it is confident that Huang's reinstatement "poses no national security risk." Read more of this story at Slashdot.

Join the discussion →

How do I fix the Instagram "Try another device to continue" login error when I have already tried another device, cleared cache, and reset my password

I am locked out of my Instagram account and keep getting an error screen that says: "Try another device to continue. This must be a device that you've used to log in to this account before. Why? We can't match the device that you're using to the account that you're trying to recover, so it isn't safe to go any further." Here is everything I have already tried without any luck: Resetting my passwordClearing the app cache and dataAttempting to log in from another deviceTapping on the "Can't try another device?" option at the bottom Even on devices I have used previously, Instagram still won't re

Join the discussion →
Older stories