Another Vector4 module, and Vector7?

Why not put vector4 in community resources? Its pretty cool.

2 Likes

Because there’s already a few out there (I think), so it would be repetitive.

1 Like

No, there’s only scripting questions about it, but no resource

Proof? Search this
“Vector4 #resources:community-resources

2 Likes

Huh, thought there were some. Guess I could move this topic to community resources. Edit: This topic has now been moved to community resources, thanks for the suggestion. :grinning_face_with_smiling_eyes:

1 Like

This can be very useful. It can store position, rotation, and even transparency in the same Vector7!

2 Likes

Remember, a vector stores numerical data that represents size or position. Rotation and transparency would work, but not position.

2 Likes

Yeah, I was thinking Vector7.new(positionx,positiony,positionz,rotationx,rotationy,rotationz,transparency) then I could use a script to decode it

3 Likes

That would work as data storage but those position values could be used for size or position of a part. That’s why using values other than for dimensional purposes doesn’t really make sense. Vectors are basically the equivalent of a space in the dimension of the vector.

2 Likes

You could, and it’s in fact the only reasonable use for anything above Vector4, but there are better alternatives, like just using a table.

2 Likes

Vectors represent position / direction, not sure what transparency has to do with it? :neutral_face:

1 Like

yeah he seems like a beginner. I, for example, have a Vector255 module where I store the player data in binary. /s

2 Likes

.

I have been scripting since around 2019

I was giving an example of storing multiple numerical values in the vector

1 Like

Transparency is a int. In the roblox database.

Coding challenge: VectorN (a vector object that has N axes). Not sure what you could use it for tho…

that would be a dynamic array:

local DynamicArray = {4.24, 22, 96, 123.76, 43, 7.5}

Update 1

  • Fixed a math bug, vector + number now works as number + vector too. This applies to all math operators (+, -, *, /, ^, %)

  • Added :Min() and :Max() functions, behaves the same as Vector3:Min() and Vector3:Max()

  • Added some type checking, however the scripts aren’t set to --!strict yet

  • Added :GetComponents() , similar to CFrame:GetComponents()

  • Added new constants: min , max , pi

The module code and models have been updated

1 Like

I am going to try to make a 4 dimensional game with this. I have always wanted to.

Seems pretty hard - 3d is built in rendering it as 4d can cause some bugs as the engine cant render 4d ofc, You might have to make your own roblox engine then. I mean you can try.

I have also made a Vector4 library/class.