I always want to keep an object in the center of view of a camera. When the camera's rotation X value is -45, the object should still be centered. Therefore I need to calculate the new position of the camera. How could the "required camera position Y value" be calculated? Thank you. … [Read more...] about Calculate required position to keep object centered when camera is rotated

# Immediate needs annuity calculator

## Do maths to thwarts satans in The Devil’s Calculator

All mathematics is devilry as far as I’m concerned, though numeric rituals are rarely as explicit as in The Devil’s Calculator. Made by the fella behind word puzzler Synonymy, The Devil’s Calculator is about solving equations backwards on a spoOoky graphing calculator to reach the number 666. The satan in the calculator has scrambled the functions of logical operators, see, so we need to… look, I live a chaste life free of algebra so I didn’t even know the game’s symbols were fake. These runes look as real to me as A† or ≜ or A⊗B or any other ‘real’ symbol I had to Google and must now flush out my brain with a neti pot of holy water. “An evil calculator has its normal arithmetic operators replaced with sadistically obscure functions,” developer Christopher Cinq-Mars Jarvis explains. All calculators are evil and all numbertricks are sadistic, of course, but I get what he’s saying. “Using logic and … [Read more...] about Do maths to thwarts satans in The Devil’s Calculator

## Calculating Damage from from object collision

I need to calculate the damage resulting from a crash of two objects. I found the formula of the resulting kinetic energy: E = m * v² / 2 I guess I also have to use the masses or sizes of the objects as well. It will make a difference if the spaceship collides with a mountain (which certainly will make both of them dealing heavy damage), or the spaceship is colliding with a floating tennisball in which case neither of them are dealing damage. … [Read more...] about Calculating Damage from from object collision

## Get the mesh Project Plane on Click and calculate its area

Here is the excerpt of my script which is calculating the surface area and face area of a mesh on OnMouseDown Event. private void OnMouseDown() { Mesh selectedMesh = this.gameObject.GetComponent<MeshFilter>().mesh; float surfaceArea = CalculateSurfaceArea(selectedMesh); float areaFromXFace = CalculateFacingArea(selectedMesh, new Vector3(1, 0, 0)); float areaFromYFace = CalculateFacingArea(selectedMesh, new Vector3(0, 1, 0)); float areaFromZFace = CalculateFacingArea(selectedMesh, new Vector3(0, 0, 1)); float areaFromClickedFace = ProjectionPlaneClickedArea(selectedMesh); string areas = "\n Surface Area : " + surfaceArea; areas += "\n Area From X-axis Face : " + areaFromXFace; areas += "\n Area From Y-axis Face : " + areaFromYFace; areas += "\n Area From Z-axis Face : " + areaFromZFace; areas += "\n Area From Selected Face : " + areaFromClickedFace; Debug.Log("Areas :"+ areas); } float ProjectionPlaneClickedArea(Mesh selcectedMesh) { Camera c = Camera.main; … [Read more...] about Get the mesh Project Plane on Click and calculate its area

## Players figured out a way of calculating PS4 game sales figures through Trophy data, Sony emails

By using Trophy data, and promotional emails Sony has been sending to PS4 owners, players managed to approximate the number of copies certain games have sold. PS4 Trophy data is public, of course. Anyone can easily access the Trophy list for a game they own, and Sony will show what percentage of players have obtained each one. That’s why we have the ultra rare, and rare categories, with Platinums being the most rare across the board. This isn’t new, and many used it in the past to gauge how far players have gotten into a game, how many reached a certain level – or even play a certain mode. But where it gets interesting is through My PS4 Life. These emails are automatically sent to PS4 players, and they contain more valuable data than you might immediately assume. The emails include fancy graphs covering personal stats compared against the rest of the player base. One data point in particular is the number of players who obtained a Trophy. When used in conjunction … [Read more...] about Players figured out a way of calculating PS4 game sales figures through Trophy data, Sony emails