#Will this blackhole mod work?
1 messages ยท Page 1 of 1 (latest)
For the explosion force you might want to set the force mode to Impulse to make it more explosion-like
https://docs.unity3d.com/ScriptReference/ForceMode2D.html
but would it work?
Would using the point effector be a good idea for what you want?
why not
maybe you can use that instead, it would simplify your code quite a bit
like this
Ye that's how it's used
I dunno if you need the mass in the direction?
I guess yeah that would make them move approximately the same speed regardless of mass
You never know til you test it
i think you want the trigger functions to be ontriggerenter2d, no?
They were 2d in the first code but now they're 3d ๐
but i don't know how to put a black hole model in the script
changed it because i thought it would be better
have you tested the code yet?
nope
you will need to test it to know whether it works or not
i dont think thats right
whaa
remove the 3d in the function name
check this one
i had it on OntriggerEnter
i added a 3D to it lol
the functions wont work if you add 3d to the names
[]cb
Use codeblocks to send code in a message!
To make a codeblock, surround your code with ```
To use C# syntax highlighting add cs after the three back ticks.
For example:
```cs
Console.WriteLine("Hello World");
```
Produces:
Console.WriteLine("Hello World");
To send lengthy code, paste it into https://paste.myst.rs/ and send the link of the paste into chat.