Rotate object always at same speed on screen, no matter camera distance?

I am rotating a globe like XCOM’s hologlobe,

enter image description here

I rotate it using Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta).

I found a good value for maxDegreesDelta, in my case it is 5.0f.

There is a limit on how close or far the camera can be, let’s assume clos is 1.0f and far is 2.0f.

I want to be able to zoom into the globe, but obviously when I do, it rotates a bit too fast then.

When zoomed out, rotation speed is satisfying:

enter image description here

When zoomed in, rotation is too fast, making it more difficult to manipulate:

enter image description here

And the problem is even more evident as game view size gets bigger, i.e. fullscreen.

Using Mathf.Lerp and Mathf.InverseLerp, I’ve tried to make maxDegreesDelta and mouse delta proportional to the distance the camera is but it’s hardly convincing.

Note: I rotate the globe, not the camera.


How can I ensure object rotates at same speed on screen, no matter how close or far camera is ?

How to spawn enemy by individual rows, scrolling downward the screen [using 2D DirectX,C]

I’m a beginner to the game development and just started making one 6 months ago. I’m creating a 2D top-down scrolling shooter game using DirectX9 and C Language.(I know it’s an old one to use but have no choice since it’s a school project).

The result I want:

  • The enemies will be scrolled down by endless rows from top until the screen ends

The problem I’m having:

Currently I’ve managed to spawn the enemies in just one single row. I don’t know how to cut and sort them into 8 enemies in each single row. I really need to know the idea to sort this out and hope someone help me figure this out!!

Thank you in advance.

Content wider than screen


Content wider than screen issue

I have run into this issue on the site:

Some web tools fail to show the overlapping content, but I have found that it is present when viewed on a Samsung Note 8 and S9.

Is anyone able to identify which element is causing the issue?

Thanks for any advice!

File size and screen recording

First and foremost, I would like an academic reference on how screen recording “works.” I have tried searching online, but I only get results for the software itself.

Exactly how does screen recording work, and to what extent does the content one records effect filesize? For instance, if I were to record my screen playing an (x) resolution video, would the final output size be proportionally larger? Why or why-not?

If this question is closed, please, I would appreciate a reference, or a better way to phrase it (or a referral to a more appropriate sub-forum). Thanks.

Kali linux Unable to lock the screen, what should i do?

Kali linux Unable to lock the screen, after some time it will go to sleep but after pressing the power button kali will comes up without lock screen, and also when i boot from kali the lock screen is so different there is a debian icon and its background can’t be changed also in the kali top right corner menu there is no option to lock the screen and there is just power option and the settings and i even tried keyboard shortcut o lock screen and nothing happened please help me its leave my computer insecure.

Kali linux version : 4.19.0 kali3 amd64 , Debian 4.19.20 1kali1

Data security while MacBook is on lock screen

I’ve recently sent my MacBook (running on Catalina) to repair by a licensed Apple service provider. The whole thing was simple (replacing one key cap) and took about 5 minutes or so. But I forgot to shut down the MacBook and only put it on lock screen. I have FileVault enabled.

Is it possible for my data to be breached in that scenario? My understanding is that FileVault only protects your data by requiring you to enter your login password when you start up the drive. It sounds like once you have logged into the computer (even if it is now on lock screen), the data is decrypted and vulnerable to unauthorized access?

Thanks in advance!

Best way to indicate secondary list items within an expandable list will lead to a new screen? iOS mobile app

I’m designing a page with an accordion list (not a sidebar menu) in a financial iOS app. I’m trying show that eacg primary list item is expandable/collapsible (indicated by up-down chevrons), and that secondary items within each primary list item will lead to a new page (indicated by right chevrons).

This is what the list looks like collapsed: List Collapsed

And expanded:

List Expanded

Is having a mix of so many chevrons confusing and cluttered? What’s the clearest way to display this?

Showing “this is secure” on credit card entry screen

Should I show some sort of “this site is secure” puffery (e.g. lock image, or some brief “this site is secure” boilerplate) on my credit card payment screen? If so, what should it look like? If not, why not?

I do want my customers to feel confident (as well as actually be safe) if they choose to enter their credit card details to pay my clients. I also want them to learn a healthy cynicism. Most of my customers are likely to have a very low level of technical knowledge about internet security and are usually either too trusting, and (in some cases) too suspicious of the wrong things.

I even had a customer call me up saying he wasn’t sure if my payment page was secure because it didn’t have any “padlock” image within the page. (yes, the page had a valid SSL certificate, the customer had the correct URL, and his version of Chrome was showing it with the green padlock with the “Secure” label at the time – after pointing this out he was happy to proceed).

I just feel it’s a bit strange to splash a “this is secure” badge on a page because I know it means nothing, technically – because a phishing page would just as easily show the exact same badge.

Assumption: that my site is actually secure (let’s just say I’ve tried my best and will continue to improve as much as possible).

For reference, here is the page as it currently stands:

Here’s a mockup of what I mean:

UPDATE after some modifications: