Why not put vector4 in community resources? Its pretty cool.
Because there’s already a few out there (I think), so it would be repetitive.
No, there’s only scripting questions about it, but no resource
Proof? Search this
“Vector4 #resources:community-resources”
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.
This can be very useful. It can store position, rotation, and even transparency in the same Vector7!
Remember, a vector stores numerical data that represents size or position. Rotation and transparency would work, but not position.
Yeah, I was thinking Vector7.new(positionx,positiony,positionz,rotationx,rotationy,rotationz,transparency)
then I could use a script to decode it
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.
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.
Vectors represent position / direction, not sure what transparency has to do with it?
yeah he seems like a beginner. I, for example, have a Vector255
module where I store the player data in binary. /s
.
I have been scripting since around 2019
I was giving an example of storing multiple numerical values in the vector
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 asnumber + vector
too. This applies to all math operators(+, -, *, /, ^, %)
-
Added
:Min()
and:Max()
functions, behaves the same asVector3:Min()
andVector3:Max()
-
Added some type checking, however the scripts aren’t set to
--!strict
yet -
Added
:GetComponents()
, similar toCFrame:GetComponents()
-
Added new constants:
min
,max
,pi
The module code and models have been updated
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.