Remember me
You are here: HomeForumCyberix3D ForumUpdatesSelect a sub-model
Welcome, Guest
Username: Password: Remember me

TOPIC: Why I can't use "If collision"?

Why I can't use "If collision"? 7 years 4 months ago #1048

I am new to Cyrberix3D. I am trying to play some sound file after collision. However, even though I have turned on the "collision" of both objects and it appears to collide in the game, the "if collision" cannot be triggered. Can anyone help me?
The administrator has disabled public write access.

Why I can't use "If collision"? 7 years 4 months ago #1049

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
Hello Roger,
First, You need to put the "If Collision" inside of a Loop command.
Second, You need to make sure that none of following parameters are set to "0":
Polygon Collision
Collision
Static
If some of these parameters are set to "0" you can reset them by pressing the "x" button near each parameter.
Regards,
Cyberix3D team
The administrator has disabled public write access.

Why I can't use "If collision"? 7 years 4 months ago #1051

Thanks for your reply.

But if I set both objects to be "static", then they cannot move!
The administrator has disabled public write access.

Why I can't use "If collision"? 7 years 4 months ago #1055

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
Try to use the collisions parameters as follows:
1_2017-08-02.jpg


And not as follows:
2_2017-08-02.jpg


Regards,
Cyberix3D
The administrator has disabled public write access.

Why I can't use "If collision"? 7 years 4 months ago #1056

Thanks! It begins to works now!
However, there is still some little problem. When two objects collide, it often detect the collision more than once. I play a "boom" sound file after detecting the collision and I often heard the "boom" sound twice (or more). How can this be avoided?
The administrator has disabled public write access.

Why I can't use "If collision"? 7 years 4 months ago #1057

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
Try to put the if collision in only one of the objects and tell us if it works.
Regards,
Cyberix3D team
The administrator has disabled public write access.
Time to create page: 0.080 seconds