# Search Results

1. Post

### Question How i could put a object at the end of the raycast?

Your last line is flipped. a=b is like the picture a<=b. It copies b into a. Flip the parts around that last ='s.
Post by: Owen-Reynolds, Dec 1, 2022 in forum: Scripting
2. Post

### Question About advanced programming on Unity and game architecture

This is one seriously hijacked thread. A drive-through "Unity sucks" post grew into what I can't even call a tangent -- just a 100% hijack. I was...
Post by: Owen-Reynolds, Dec 1, 2022 in forum: Scripting
3. Post

### Question About advanced programming on Unity and game architecture

Maybe you write code and think to yourself "factory pattern" and it really helps you out. But my point is that it won't help others. Say someone...
Post by: Owen-Reynolds, Nov 30, 2022 in forum: Scripting
4. Post

### Question About advanced programming on Unity and game architecture

I've got a 3 or 4 page intro to Unity for programmers at taxesforcatses-dot-com/codeNotes/UforP.shtml. One thing from there -- everything in Unity...
Post by: Owen-Reynolds, Nov 29, 2022 in forum: Scripting
5. Post

### Question Why is a Sin Function More Variable Than a Linear Function?

Yes. As a check, you've got counter+=0.005 now. Well, you probably want it to hit the max and restart in a fixed amount of time. Clearly, as is,...
Post by: Owen-Reynolds, Nov 28, 2022 in forum: Scripting
6. Post

### Question Use a normalized vector as the rotation of a transform

transform.rotation = Quaternion.LookRotation(rotatedVector); converts a direction vector into a rotation. It's not as common as...
Post by: Owen-Reynolds, Nov 27, 2022 in forum: Scripting
7. Post

### Question Why is a Sin Function More Variable Than a Linear Function?

The normal way to make an object fall faster-and-faster, as if with gravity, is to actually simulate gravity. It's not tough (and the internet...
Post by: Owen-Reynolds, Nov 26, 2022 in forum: Scripting
8. Post

### Question Is it possible to run some logic after all gameobjs' update and fixedupdate?

Sure, give each object an extra framesUntilReclaim, set to, say, 3 on death. My point is that now any arbitrary Update() can take care of it -- we...
Post by: Owen-Reynolds, Nov 24, 2022 in forum: Scripting
9. Post

### Question Is it possible to run some logic after all gameobjs' update and fixedupdate?

I could be reading this wrong, but https://docs.unity3d.com/Manual/ExecutionOrder.html has a nice picture or the order everything runs. LateUpdate...
Post by: Owen-Reynolds, Nov 23, 2022 in forum: Scripting
10. Post

### Question Is there a better way to do this? Like/Neutral/Dislike struct with lists.

IMHO this thread is a great example of exactly what you're worried about. Most things we write, especially for games, are going to be removed,...
Post by: Owen-Reynolds, Nov 23, 2022 in forum: General Discussion
11. Post

### Question Is there any faster way than calling SendMessage?

Sure. And most people do this, using programming tricks to make it simpler. There could be front-end functions handling all of those IF's: bool...
Post by: Owen-Reynolds, Nov 19, 2022 in forum: Scripting
12. Post

### Question Is there a better way to do this? Like/Neutral/Dislike struct with lists.

This feels like a prime example of a textbook explaining the interface concept. Here we've got monkey-eating and want to do things such as...
Post by: Owen-Reynolds, Nov 19, 2022 in forum: General Discussion
13. Post

### Question Is there any faster way than calling SendMessage?

For the OpenDialogueBox thing, the normal programming thing is just target.OpenDialogueBox(). For where you aren't sure which part of the target...
Post by: Owen-Reynolds, Nov 19, 2022 in forum: Scripting