Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Detect specific rope collision.
#16
(04-07-2022, 11:57 AM)Gauri7 Wrote: why am I getting this error :- Assets/Scripts/RopeCollision.cs(37,58): error CS1061: 'Oni.Contact' does not contain a definition for 'particle' and no accessible extension method 'particle' accepting a first argument of type 'Oni.Contact' could be found (are you missing a using directive or an assembly reference?)


Assets/Scripts/RopeCollision.cs(38,58): error CS1061: 'Oni.Contact' does not contain a definition for 'other' and no accessible extension method 'other' accepting a first argument of type 'Oni.Contact' could be found (are you missing a using directive or an assembly reference?)

Hi,

Contacts do not have “particle” or “other” member variables.

You must use contact.bodyA to access the simplex, and contact.bodyB to access the collider. See the scripting section of the manual for details:
http://obi.virtualmethodstudio.com/manua...sions.html
Reply


Messages In This Thread
Detect specific rope collision. - by flaurens - 05-10-2020, 08:45 AM
RE: Detect specific rope collision. - by flaurens - 05-10-2020, 12:18 PM
RE: Detect specific rope collision. - by Elegar - 09-11-2020, 09:53 PM
RE: Detect specific rope collision. - by Elegar - 11-11-2020, 12:16 PM
RE: Detect specific rope collision. - by Gauri7 - 04-07-2022, 11:57 AM
RE: Detect specific rope collision. - by josemendez - 04-07-2022, 01:23 PM
RE: Detect specific rope collision. - by Gauri7 - 04-07-2022, 02:12 PM
RE: Detect specific rope collision. - by Gauri7 - 05-07-2022, 09:33 AM
RE: Detect specific rope collision. - by Gauri7 - 06-07-2022, 12:20 PM
RE: Detect specific rope collision. - by Gauri7 - 08-07-2022, 09:35 AM