Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: blackant on August 11, 2014, 08:46:09 AM
-
i get this error message when i want to get the infos from collider hit position and it hits terrain
Setting the Material property is not supported for Colliders of type TerrainCollider.
UnityEngine.Collider:get_material()
HutongGames.PlayMaker.Actions.GetCollisionInfo:StoreCollisionInfo() (at Assets/PlayMaker/Actions/GetCollisionInfo.cs:55)
HutongGames.PlayMaker.Actions.GetCollisionInfo:OnEnter() (at Assets/PlayMaker/Actions/GetCollisionInfo.cs:66)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:OnCollisionEnter(Collision)
PlayMakerCollisionEnter:OnCollisionEnter(Collision)
-
What are you trying to do? Get the material on the terrain from a raycast or change it?
Maybe this is useful:
http://hutonggames.com/playmakerforum/index.php?topic=5201.msg24803#msg24803
-
no, i'm simply made a get collide infos to get the position of the impact
never asked for material ...
i solved my problem by getting the position of the transform instead of impact point.