@Benbo212 You have a few ways, colliders, triggers and raycast. If you add a collider(mesh,capsual, box ...) you can check for both a trigger(if is trigger is set to true) or a collide event.
The RaycastHit allows you to project an invisible line out, and check every frame to see if it hits a game object.
If you need a very specific object, you can use the gameobject.name; or you can check for the gameobject tag.
You my man are a star! This tutorial has turned days of aimlessness and frustration into sheer productivity and fun. My game prototype has life in it! I literally fist pumped the air in joy when I got my game adding force. Thanks so much!
@MightyMatty76 glad I was able to help, if I can help in any way with your #unity3d experience, just drop another comment and i would be more then happy to see what I can do. Hope to see your game soon.
ok i have a question how do you detect an certain object without using the character controller?
Benbo212 2 months ago
@Benbo212 You have a few ways, colliders, triggers and raycast. If you add a collider(mesh,capsual, box ...) you can check for both a trigger(if is trigger is set to true) or a collide event.
The RaycastHit allows you to project an invisible line out, and check every frame to see if it hits a game object.
If you need a very specific object, you can use the gameobject.name; or you can check for the gameobject tag.
eabelard 2 months ago
this is great! thanks for sharing Edithson. will be subbing for sure!
xJohnGx 3 months ago
@xJohnGx Thanks I always appreciate the feedback. Hope you enjoy the other videos as well.
eabelard 3 months ago
You my man are a star! This tutorial has turned days of aimlessness and frustration into sheer productivity and fun. My game prototype has life in it! I literally fist pumped the air in joy when I got my game adding force. Thanks so much!
MightyMatty76 3 months ago 2
@MightyMatty76 glad I was able to help, if I can help in any way with your #unity3d experience, just drop another comment and i would be more then happy to see what I can do. Hope to see your game soon.
eabelard 3 months ago