Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Esteban Ricardo Castillo Vargas
@steve0el0crack
Is it possible that "hook+" does not work on Unity version 2019.4.12f1? I am trying to do exactly -literally- what Saikyun did in his first Video (https://www.youtube.com/watch?v=Enumt6qxAgc&t=550s). Everything goes ok till the use of "hook+" for implementing the movement of the cube. Besides, I see a warning on Unitiy: "Expected Unity 2018.x, got 2019.4.12f1. This might cause issues".
Joseph Parker
@selfsame
@steve0el0crack any errors in the repl or unity console? (hook+ (GameObject.) :update :_ (fn [o k] (log "hello"))) should get you a message printing
Saikyun
@Saikyun
@steve0el0crack also just to make sure, are you in play mode or editor mode? it's maybe not very apparent, but I do enter play mode around there :)
Nano
@nanoni17728
Heya! Back at Arcadia again
I would like to prototype stuff around feedback loops the same way as Cybernetics
Hope the project is still running smoothly
Nano
@nanoni17728
is the LTS 2020.3.3f1 alright with the current version of Arcadia?
Damon Kwok
@damon-kwok
is the 2021.2.0a14 alright with the current version of Arcadia?
Damon Kwok
@damon-kwok
Library/PackageCache/com.unity.visualscripting@1.5.2/Editor/VisualScripting.Core/Utilities/BackupUtility.cs(26,34): error CS0433: The type 'ZipFile' exists in both 'Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' and 'Ionic.Zip, Version=1.9.1.9000, Culture=neutral, PublicKeyToken=null'
Saikyun
@Saikyun
so far I haven't heard of a unity version not working with arcadia. feel free to try it and report back if it does or doesn't :D
wrt the dll problem, try quitting unity, remove all arcadia related file (both in project root and in the assets-folder) and try again
sometimes dll files end up in two places, especially on windows
Damon Kwok
@damon-kwok
I removed 'Ionic.Zip.dll', it's work.
Daniel Gerson
@dmg46664
image.png
Not an Arcadia question (but my next step after I do it in app is to do it with Arcadia). Is there anything special I have to do to see the other rigidbodies in my scene to add a connected body?
Hmmm... turns out I can drag the object into the field (but can't type it's name or select it, which feels like a bug).
Never mind :-)
Thanks all for the great tooling! And @Saikyun for a great starter video.
Saikyun
@Saikyun
Happy that you found it helpful :)
Luca Di sera
@diseraluca

I'm trying to use Unity's raycasting methods.
For example the following function:

(defn raycast [^Ray ray]
  (let [hit (RaycastHit.)]
    (when (. Physics (Raycast ray (by-ref hit)))
      hit)))

The problem is that this will fail as the first parameter of Raycast is expected to be a Vector3 and not a Ray.
Raycast is overloaded, some of the calls gets two Vector3s as the first two parameters and some other gets a Ray as first parameter.

I've tried with everything I could find, from casting to type hint string but I don't seem to be able to make it choose the correct overload.

Is there a way to force the overload that should be chosen?

Saikyun
@Saikyun
I can't find any code samples atm, but the way I solved it was by creating a c# class doing the actual raycast calls
Might be a clojure only solution, but I thought this worked well so never looked back
If you need code samples for that, tell me and I'll look on my computer :)
Luca Di sera
@diseraluca
Thanks you for the hint I will try this way! If it is not too much of an hassle to find the code examples it would be great to have them
Saikyun
@Saikyun
sadly the git server I have the code on is down atm :x it was so long I used it
but essentially just create a "normal", static c# function which does what you want
then :import it in your clojure code, and call the static function :)
I often create a clojure function to wrap the c# static function, so that I get a function that can feel more like clojure than c#
Luca Di sera
@diseraluca
Thanks for the great tips, I was able to resolve the problem!
Saikyun
@Saikyun
Ah, I'm happy to hear it :)
Adam Clements
@AdamClements
Hey - long time since I've used Arcadia - any progress getting it working with the new DOTS, seems like a great fit for clojure?
Kevin van Rooijen
@kwrooijen
Hello, does the :dependencies key in ArcadiaGodot work? I added :dependencies [[selfsame/soa "0.6-SNAPSHOT"]] to the ArcadiaGodot/configuration.edn file but AFAIK the dependencies aren't being pulled. Any idea?
Kevin van Rooijen
@kwrooijen
Ah just read that package management is a missing feature
Kiran Shila
@kiranshila
Is there a clean/clever way of running a clojure function on a button press? I'm having a lot of difficulty trying to figure out how to attach it to the On Click
Edwin Park
@esp1971_gitlab
@kiranshila if you have your button mapped as "Fire1" in Edit -> Project Settings -> Input Manager you can do something like:
(import '[UnityEngine Input])

(defn do-something [game-obj key]
  (when (Input/GetButtonDown "Fire1")
    ; do something
    )

(hook+ game-obj :update :click #'do-something)
Edwin Park
@esp1971_gitlab
Q: how can I attach an Arcadia clojure script to an existing game object in a Unity project? I'm assuming I'd need to do that in order to add a :start hook entry point as per https://github.com/arcadia-unity/Arcadia/wiki/Using-Arcadia#entry-point
Saikyun
@Saikyun
fwiw I usually have a single entry point into clojure, and then I use things like (object-named ...) to attach things using code instead
since there's no gui for it
@kiranshila did you get it working? :)
Edwin Park
@esp1971_gitlab
ah ok - thanks @Saikyun !
Kevin van Rooijen
@kwrooijen
Hey all! Not to be pushy / demanding or anything, but I just wanted to let the Arcadia team know that I opened a few issues / pull requests for ArcadiaGodot. Whenever someone has time then feedback would be appreciated. I just thought I'd mention it here because development doesn't look very active and maybe these issues / PRs aren't being spotted on the radar.
Maintaining OSS projects costs (free) time and effort obviously. Thanks for the awesome work you've all done :smile:
Joseph Parker
@selfsame
@kwrooijen yes just seeing them! will take a look as soon as I'm able but at a glance it looks like good feature work!
Kevin van Rooijen
@kwrooijen
Thank you, I'm pretty excited about the new features and looking forward to the reviews :)
Nano
@nanoni17728
Heya!
back again at Unity
But this time I’m not sure if what I want to do would work out... I got a VR headset and I would like to build an interactive in-vr development space
Which would mean messing with Clojure/Lisp at runtime
Nano
@nanoni17728
Currently watching nasser’s talk on MAGIC