![]() |
Scripting Collisions - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html) +--- Thread: Scripting Collisions (/thread-163.html) |
Scripting Collisions - moltek - 01-10-2017 This line returns an error, has solver.colliderGroup been changed from the time of creating the example script? Code: solver.colliderGroup.Colliders[contact.other]; RE: Scripting Collisions - niZmo - 01-10-2017 (01-10-2017, 07:52 PM)moltek Wrote: This line returns an error, has solver.colliderGroup been changed from the time of creating the example script? Yes collider group is deprecated. There is a new collision system now http://obi.virtualmethodstudio.com/tutorials/collisions.html. Your code will change to Code: var collider = ObiColliderBase.idToCollider[contact.other] as Collider RE: Scripting Collisions - moltek - 03-10-2017 (01-10-2017, 11:28 PM)niZmo Wrote: Yes collider group is deprecated. There is a new collision system now http://obi.virtualmethodstudio.com/tutorials/collisions.html. Thanks! For staff, can we get an update on http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html RE: Scripting Collisions - josemendez - 03-10-2017 (03-10-2017, 04:04 PM)moltek Wrote: Thanks! Sure, working on it. In fact there are some other inconsistencies in the docs between 3.2 and pre-3.2 versions that we need to take care of. RE: Scripting Collisions - josemendez - 07-10-2017 (03-10-2017, 04:04 PM)moltek Wrote: Thanks! Just wanted to chime in and let you know this documentation page has been updated to reflect changes introduced in 3.2. |