Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi! You can attach a point of one group to a point of another group using the VIConnector like this:

var rope1 = new VIRopeColored(0, 0, 8, 10, c_red, 1, 1, -1);
system.AddObject(rope1);
var rope2 = new VIRopeColored(0, 0, 8, 10, c_green, 1, 1, -1);
system.AddObject(rope2);
var connector = new VIConnector(0, 0);
connector.SetParent(VI_PC_TYPE.POINT, rope1.GetPointByKeyword(VI_POINT_INDEX.LAST));
connector.AddChild(VI_PC_TYPE.POINT, rope2.GetPointByKeyword(VI_POINT_INDEX.FIRST), false);
system.AddObject(connector);


This connects the first point of the green rope to the last point of the red rope. Note that you can't set up circular hierarchies though with multiple groups where the last one is connecting to the first.


If you need some new object which is not represented by a rope/cloth/softbody, you need to create a new function which derives from VIPhysical. You can look at how the VIRope functions are set up for that :)

Thanks for the help! I've been racking my brains for a few days trying to do this, thank you very much :D

(1 edit) (+1)

No problem :)