#Will this blackhole mod work?

1 messages ยท Page 1 of 1 (latest)

merry wharf
#

Will this work?

solemn otter
merry wharf
#

but would it work?

rotund coral
#

Would using the point effector be a good idea for what you want?

merry wharf
#

why not

rotund coral
#

maybe you can use that instead, it would simplify your code quite a bit

solemn otter
#

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

merry wharf
#

so would it work in-game orr?

#

like actaully function

solemn otter
#

You never know til you test it

merry wharf
#

oh and

#

i'm trying to make a blackhole

rotund coral
#

i think you want the trigger functions to be ontriggerenter2d, no?

solemn otter
#

They were 2d in the first code but now they're 3d ๐Ÿ˜‚

merry wharf
#

but i don't know how to put a black hole model in the script

merry wharf
solemn otter
#

Depends if your game is 2d or 3d

#

๐Ÿ˜‚

merry wharf
#

vr game

#

so 3D

#

i'm new so i can make mistakes

rotund coral
#

have you tested the code yet?

merry wharf
#

nope

rotund coral
#

you will need to test it to know whether it works or not

merry wharf
#

changed it

rotund coral
#

i dont think thats right

merry wharf
#

whaa

rotund coral
#

remove the 3d in the function name

merry wharf
#

i had it on OntriggerEnter

#

i added a 3D to it lol

rotund coral
#

the functions wont work if you add 3d to the names

errant matrix
#

[]cb

hollow jettyBOT
#

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.