Category : 3d

I am trying to create an animation loop through the use of timers. I want to call a different SetRenderParams(int) after approximately 5-10 seconds. I don’t know how timers work and the documentation I can find online is VERY minimal. I tried if and while statements to break the timer, but I have come to ..

Read more

I’m trying to make a VR mouse which controls my systems actual mouse cursor and wondering if anyone has any ideas. I’m working in Unity3d and have: void Update() { //mouseObj.transform.position = GetMousePosInWorldSpace(); Rigidbody rb = GetComponent<Rigidbody>(); /// The following are just a way i can test moving the mouse if (Input.GetKey(KeyCode.A)) mouseObj.transform.position -= new ..

Read more

I am having a weird problem in the below code snippet. I am trying to use surface normals of a sphere(outward) to determine the correct ray intersection and eliminate those that are hitting from within the sphere. for some strange reason this only works correctly when I flip my surface normal to be inwards and ..

Read more

I’m having trouble with list iteration while inserting/erasing elements. What I’m trying to achieve is iterate over the list but ignore freshly added elements. I’ve tried to do it by pushing new elements at the front and going to the next element when erasing. The problem is it doesn’t seem to work. Iteration completely changes ..

Read more