Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting Collisions
#1
This line returns an error, has solver.colliderGroup been changed from the time of creating the example script?

Code:
solver.colliderGroup.Colliders[contact.other];
Reply
#2
(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
Reply
#3
(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
Reply
#4
(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.
Reply
#5
(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.
Reply