Obi Official Forum

Full Version: Scripting Collisions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This line returns an error, has solver.colliderGroup been changed from the time of creating the example script?

Code:
solver.colliderGroup.Colliders[contact.other];
(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?


Code:
solver.colliderGroup.Colliders[contact.other];


Yes collider group is deprecated. There is a new collision system now http://obi.virtualmethodstudio.com/tutor...sions.html.

Your code will change to
Code:
               var collider = ObiColliderBase.idToCollider[contact.other] as Collider
(01-10-2017, 11:28 PM)niZmo Wrote: [ -> ]Yes collider group is deprecated. There is a new collision system now http://obi.virtualmethodstudio.com/tutor...sions.html.

Your code will change to

Code:
               var collider = ObiColliderBase.idToCollider[contact.other] as Collider

Thanks!


For staff,
can we get an update on http://obi.virtualmethodstudio.com/tutor...sions.html
(03-10-2017, 04:04 PM)moltek Wrote: [ -> ]Thanks!


For staff,
can we get an update on http://obi.virtualmethodstudio.com/tutor...sions.html

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.
(03-10-2017, 04:04 PM)moltek Wrote: [ -> ]Thanks!


For staff,
can we get an update on http://obi.virtualmethodstudio.com/tutor...sions.html

Just wanted to chime in and let you know this documentation page has been updated to reflect changes introduced in 3.2.