18-02-2022, 12:14 AM
Hello,
Sorry if this question has been asked elsewhere, I tried looking but found nothing. Basically, do collision materials override? What I mean is, let's say I set my emitter to have a specific material (ie, ice), but another object with a collider to a different material (ie, high friction). Will the fluid react to every other collider as 'ice,' but react to the specified object as 'high friction'? Or will it choose the emitter material instead?
The reason I ask is that I have a character whose colliders are created with a script in-game, so I have another script to add the ObiCollider component after that to get around the ObiCollider requirement. When I try to add a material to the recently created colliders, it says that the material property is inaccessible (I assume its a private variable and I don't just want to start messing with the code at will). I would like to set the materials for this character's colliders to be different than other objects in the game, and I don't really know the best way to go about this.
Thanks in advance!
Sorry if this question has been asked elsewhere, I tried looking but found nothing. Basically, do collision materials override? What I mean is, let's say I set my emitter to have a specific material (ie, ice), but another object with a collider to a different material (ie, high friction). Will the fluid react to every other collider as 'ice,' but react to the specified object as 'high friction'? Or will it choose the emitter material instead?
The reason I ask is that I have a character whose colliders are created with a script in-game, so I have another script to add the ObiCollider component after that to get around the ObiCollider requirement. When I try to add a material to the recently created colliders, it says that the material property is inaccessible (I assume its a private variable and I don't just want to start messing with the code at will). I would like to set the materials for this character's colliders to be different than other objects in the game, and I don't really know the best way to go about this.
Thanks in advance!