1
vote
2answers
66 views
Displaying Mathematical Equations
Is there a way to display mathematical equations in a manner in which we would naturally write them or see them displayed in books (fractions, radicals, integrals, etc...)?
I have …
2
votes
3answers
162 views
Convert String to Float
Hi
I would like to convert a string to float in order to do math operations on it.
Here is my line of code where I want to convert the string, which is stored in an array to a f …
0
votes
2answers
49 views
Very big numbers (size, mass, etc), Scientific Notation
Hello,
I'm currently learning my way aroudn Unity and the scripting languages and as an exercise, i'm making a little demo application where you can control a spaceship orbiting a …
0
votes
1answer
62 views
Converting Matrix4x4 to Quaternion & Vector3
I'm attempting to convert a Matrix4x4 which is being currently being applied to a camera using camera.worldToCameraMatrix and works fine.
I'm able to get the position out with:
V …
0
votes
1answer
16 views
Absolute Value of a Float
I'm writing a JavaScript - how do I get the absolute value of a float? abs() does not work (as it does in JavaScript).
Thanks.
0
votes
2answers
140 views
CharacterController on Moving Surface
The CharacterController needs to get on and off translating and rotating surfaces without parenting, which does not work without messing with the hierarchy. I can get a collided ob …
0
votes
1answer
105 views
How to rotate a model instantly?
Ok I am having a brainfreeze.
My camera is set to look down on the Z-X plane, so it's like 2D:
z
|
|
+----- x
I want to be able to rotate an object instantaneously around Y-axis …
2
votes
2answers
161 views
Oscillating variable
How can i get the value of a variable to oscillate over time using Javascript?
0
votes
1answer
68 views
how to get the distance (or altitude) of one object above another
I'm trying to get the height of my ship above the ground (altitude if you like) at the moment I'v tried this
var HeightTXT: GUIText;
var Heighttarget : Transform;
var distance : i …
1
vote
3answers
76 views
How do I change one value, to another, over a time period?
Okay this is a very noob question but...
I want to write a script that allows me to change one value, in this case the "amount" value of a effect I have, to another value... over …