N
N
NeoLight22022-03-16 14:15:28
C++ / C#
NeoLight2, 2022-03-16 14:15:28

How to create a virtual mesh cube in C# script, based on 4 points ( Vector3)?

I'm writing a plug-in for the game on Unity3D.
You need to create a virtual invisible cube that borders on the given 4 points.
The mesh cube is needed so that when the player passes through this space, my plugin works.
I did not find information on the Internet how to do this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-03-16
@freeExec

Here in the documentation how to create a square, by analogy, and a cube.
But in your case, you just need a BoxCollider, and not a bicycle that you are going to do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question