Jetdog's collection of small things ( journal )

Testing projecting mouse position to collider in scene and making a cube follow the position. I ran into a strange problem with this project. made a canny for it.

Conveyor belt moving cubes.

spawner spawning to set amount of seconds.

move collider objects in trigger towards direction conveyor is pointing.

2 Likes

was thinking about adding to this with a counter and questioned how to display the number. thought about using text mesh pro for ease of use but realized there is no access to them from within udon. https://vrchat.canny.io/vrchat-udon-closed-alpha-feedback/p/text-mesh-pro-support

messing with editing my conveyor belt. decided to switch from transform translate to rigidbody add force. but was having problems getting it to work. found out the collider get rigidbody returns null. so put a canny up.

also found that the system int doesnt show up in search. put a canny up.

working on a project and found that self reference 2d rigidbodys dont work. made a canny about it. im questioning if self referencing rigidbodyes just dont work will test a bit more.

EDIT: above should be ignored. Jetdog's tips and tricks

will have to stop my current project since im missing Collision2D nodes. made a canny for it.


https://vrchat.canny.io/vrchat-udon-closed-alpha-feedback/p/center-already-added-event-nodes

forgot to share the player controller for the project.

1 Like

started working on recreating the trigger system in udon for user who know that but not how to code.

started with a little experimenting some things. like setting a array of gameobjects to disable.

3 Likes

had some troubles with getting back into udon. files weren’t importing correctly and graphs weren’t compiling after edits. phasedragon showed an easy way to fix the second issue which was to duplicate the graph then manually compile it. after that i got a graph to change player movement based on height. https://twitter.com/jetdog8808_dev/status/1218888092515475456

noticed that strafe speed wasn’t changing and there was no node for it so made a canny. https://vrchat.canny.io/vrchat-udon-closed-alpha-feedback/p/strafe-speed-needs-to-be-added

should probably start updating this with new information. to start things off when I tried to get back into Udon. I tried using the node graph for simpler graphs but had too many problems. i think it would take too much time to try and work with the nodegraph in its current state, so i switched to udonsharp.
https://github.com/Merlin-san/UdonSharp

the udon assembly has been working just fine. gives a lot of flexibility for what we can do. the main problem is the node graph compiler.

for people that want to view things im working on i published my test worl.
https://vrchat.com/home/world/wrld_e247a305-5e5b-4bc4-a83a-253b197b7a65

I also am uploading my project to github if anyone want to see how it made things.
https://github.com/jetdog8808/Udon-playground
it will be updated every so often.

1 Like

The test world is great! I just tried it out and liked it a lot. How did you do the pickup flying object?

https://github.com/jetdog8808/Udon-playground/blob/master/Assets/jetdogs-prefabs-udon/U%23%20scripts/pickup_setvelocity.cs

1 Like

I’m really curious how to project the mouse position onto a collider surface like that.
Does it require raycasting?

yes but you would have to do it a different way then how i did it. we cant reference the players camera in game which i did for that project.

Thanks for this! Just used it to get my cannons working in my ship!