Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

OcularCash

ADG
  • Content Count

    3,855
  • Joined

  • Last visited

  • Days Won

    129

OcularCash last won the day on November 30

OcularCash had the most liked content!

Community Reputation

1,045 Excellent

About OcularCash

  • Rank
    Team Member
  • Birthday 04/29/1985

Profile Information

  • Gender
    Not Telling
  • Location:
    Springfield Missouri USA
  • Interests
    Javascript, Java, C#, C++, PHP, 3d Modeling, Foley Recording, Photography

Contact Methods

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. OcularCash

    Is it possible that this code would break sometimes?

    Not sure, I don’t use singletons very often. I know @YoungDeveloper is a singleton fan tho so he might know
  2. OcularCash

    Is it possible that this code would break sometimes?

    It could continue to work, it could not. Idk how unity calls for instancing but my guess is it’s sorted maybe (by name or size or something), where your input manager is created and stored closer to the end of the list to update than your test script. I’m saying it’ll most likely always work as long as input manager is stored after the other script. but like I said, idk how it’s ordered and called p.s. When I write my engines, when a scene instances, it starts it like this (create game object>transform add components in order and called awake as each component is being created). For instance: for(i < scene.objects) { go = new instance(scene.objects.go); for(c < scene.objects.components) { Comp = go.addcomponent(...[c]); } public class component : behaviour { public component() { Awake(); } } so it depends on where it’s store in the scene/project file. One can use awake to access something like that as long as it’s created after
  3. OcularCash

    Bullet Tracer Problem

    Your not setting the rotation of the tracer. Thus the tracer is always facing in vector3.forward instead of in the same direction as the camera
  4. OcularCash

    Script help me

    conversion: add your namespace just like you see in other c# scripts change function to void change var dead : Rigidbody = to Rigidbody dead =, same goes with other variables remove the period after GetComponent so it’s GetComponent<Something> instead of GetComponent.<Something>
  5. OcularCash

    Script help me

    Js and c# cannot interact without forcing one to compile first. Your best bet is to just convert the js file to c#
  6. OcularCash

    Script help me

    Your answer is in your console. PlayerDamage does not exist in your implementation. Change ApplyDamage to PlayerDamage. conversion: add your namespace just like you see in other c# scripts change function to void change var dead : Rigidbody = to Rigidbody dead =, same goes with other variables remove the period after GetComponent so it’s GetComponent<Something> instead of GetComponent.<Something> thats the basics of converting js to c# in a nutshell. Don’t really need a converter for such a small script
  7. OcularCash

    error CS0246

    Do you have two scripts with the namespace “Look”? If I remember correctly they cancel each other out and throw that same error. Happened a couple times to me when I first started using unity and created a mouselook but also had the standard unity mouselook in the project
  8. OcularCash

    Quaternion Glitch

    As Roland stated. It’s unitys quaternion version of the gimbal lock
  9. OcularCash

    How you start GameDevelopment/coding?

    Lol most of the staff including oma is around my age
  10. OcularCash

    How you start GameDevelopment/coding?

    I started by making text adventure games on ms dos. Concept was pretty simple. List of questions (to the north there is a tree. To the east you see a man pushing a wheel barrel. To west you hear the sounds of the ocean) each direction led to another index in the list, etc. so I actually learned to code prior to editors or any kind of visuals/visual aids whatsoever, just words on a black screen. in the mid/late 90s I spent a lot of time modding gta (the original on Windows back before it released on the first PlayStation). Used to make penis cars or erase the cars so they’re just floating around lol (don’t judge, I was 12). That’s when I got more into visual game developing and started working on games like link to the past, super Mario and ff mystic quest like games so what... 20 something years and still love developing
  11. OcularCash

    Help Move script Please

    You just had this exact same issue on Saturday. Always recheck your work for spelling mistakes just think of it like this. Your not wanting to create a function that fixes the update, your wanting to use a function that has already been fixed. Hint Fix(ed) update and not fix. Because if it was called FixUpdate, then that would mean the update loop has not been fixed yet which would make no sense putting anything in it. Coding is just a form of writing, if it makes no sense when you read it back, then you misstyped something
  12. OcularCash

    Object didn't spawn

    if(Moving == true), not if(Moving = true). FixedUpdate, not FixUpdate. You said you copied it perfectly but there’s those issues so obviously it’s not copied perfect. If it works in the video and not for you, it’s a mistake you made, not the author Make sure FixUpdate is changed to FixedUpdate on both scripts, not just one
  13. Use two lights and separate the objects into two separate layer. Render the low light level object using one light and everything else with the other
  14. OcularCash

    NavMesh custom walking behaviour

    Well you can still use nav mesh, just have to make your own agent then. Just get the path to the target, clamp the direction and use a rigid controller/char controller for physics stuff. If clamped direction compared to controller forward is at a greater angle than 5, rotate to target direction, else move forward
  15. OcularCash

    Saving changes on GameObject during play mode

    Nice. You can also do the same thing by right clicking the component you want to save and selecting “copy component”, then exiting play mode and right clicking again and selecting “paste component values”. But good none the less
×