[Mod] More vector helpers [vector_extras]

Post Reply
User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

[Mod] More vector helpers [vector_extras]

by Hybrid Dog » Post

This mod adds more vector functions to minetest.

Some of them are shown at
http://dev.minetest.net/Mods/vector_extras

License: WTFPL
Download: zip, tar.gz
github: vector_extras


vector.line can be used for many purposes:
Image
Last edited by Hybrid Dog on Fri Feb 12, 2016 17:16, edited 6 times in total.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Which one of these functions (if any) does this:

I have a current position.
I have a target.
I want to move R nodes towards the target.
A vector (x,y,z) is returned.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

It is worth noting that Hybrid Dog's shadows mod uses this mod.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

I dont know if its good to use the dev wiki for mod documentation.

User avatar
hoodedice
Member
Posts: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

PilzAdam wrote:I dont know if its good to use the dev wiki for mod documentation.
With the absolute lack of any sort of end-user content, better this than nothing.
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build

User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

by Hybrid Dog » Post

Spoiler
vector.explosion_table(r)
returns a table of positions which could be used for simulating an explosion hole
Image

vector.circle(r)
Image

vector.ring(r)
might work faster than vector.circle
Image



ImageImage

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

azentenolara
New member
Posts: 1
Joined: Fri Jan 15, 2016 23:12

Re: [Mod] More vector helpers [vector_extras]

by azentenolara » Post

in the newest version on linux, do not run the mod

User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] More vector helpers [vector_extras]

by Hybrid Dog » Post

What's the problem?

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
j0j0n4th4n
Member
Posts: 249
Joined: Tue Jan 26, 2021 06:45

Re: [Mod] More vector helpers [vector_extras]

by j0j0n4th4n » Post

I got an error in 5.4
ERROR[Main]: [vector_extras] vector.cross already exists.
cdb_894a100ddd76

User avatar
Blockhead
Member
Posts: 1622
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: [Mod] More vector helpers [vector_extras]

by Blockhead » Post

j0j0n4th4n wrote:
Wed Nov 24, 2021 17:12
I got an error in 5.4
ERROR[Main]: [vector_extras] vector.cross already exists.
This mod is from back in 2016. in July 2019 HybridDog added vector.cross to the core API, so there's no mod needed. You can drop that function from the mod.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
j0j0n4th4n
Member
Posts: 249
Joined: Tue Jan 26, 2021 06:45

Re: [Mod] More vector helpers [vector_extras]

by j0j0n4th4n » Post

This mod is from back in 2016. in July 2019 HybridDog added vector.cross to the core API, so there's no mod needed. You can drop that function from the mod.
And where is this function being defined?
I only find it being called in the init file at line 302:

Code: Select all

 	local vn = vector.normalize(vector.cross(B, C))  
cdb_894a100ddd76

User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] More vector helpers [vector_extras]

by Hybrid Dog » Post

Some time ago I decided to copy-paste code from this vector_extras mod to remove vector_extras dependencies from my other mods, but I forgot to update the mods at content.minetest.net and other pages. Sorry for the inconveniences.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests