playMaker

Author Topic: not supported for Colliders of type TerrainCollider [SOLVED]  (Read 3652 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
not supported for Colliders of type TerrainCollider [SOLVED]
« 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)
« Last Edit: August 14, 2014, 03:11:54 PM by Lane »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: not supported for Colliders of type TerrainCollider
« Reply #1 on: August 11, 2014, 11:45:55 AM »
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
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: not supported for Colliders of type TerrainCollider
« Reply #2 on: August 11, 2014, 01:16:34 PM »
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.