Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Is there a on Collision command. On collision, set animation to fall down. on collision, change texture. like a bullet hitting a glass window and changing the texture to a broken one or when you hit something it falls over. |
||||
|
Here you can download a basic behavior plugin. do some similar you need. In download you find 1.- Example 2.- File for ccb 3.- behaviorfile http://brainxcode.cl/exchange/te... Luky Man! On Collision do action. this by named on proximity.... mmmm... Conf. Rad. from object. Folder of collisionable objects. Action to do when collision detected. Really is not a collision sistem is a proximity detector. i hope help to some one |
||||
|
Download link is not work |
||||
|
You can also use the built-in "on proximity do something" behavior, it is not that precise because it uses a radius, but still probably works for stuff like bullets and windows and similar. |
||||
|
CC need really need to have a more complex system for collision detection for 3d node...based on meshes or triangle intersection detection... but proximity detection based on a sphere radius is not very usefull in certain cases... really need to improve this in future... |
||||
|
You have reason bob .. need more basic commands. like on collision, pitch , roll, yaw objects using quatenions, emissive textures and much more... etc... (you can see old scool api , like blitz, or darkbasic they are well complemented) HA ! i fix the download sorry for that. For now this is i can make using the existing list of commands for detect a basic "collision" or better "proximity" (is not the same). |
||||
|
wrote: You can also use the built-in "on proximity do something" behavior, it is not that precise because it uses a radius, but still probably works for stuff like bullets and windows and similar. I had a request to do a tutorial on collision boxes with characers. So i attached cubes to the bones and if the bullet was really close to it then an animation was produced. It works but a bullet on collisoin with said oject would have been better. |
||||
|
I tried the download link but it did not have the behavior or ccb file. Can you upload again? |
||||
|
|
||||
|
I tried the download link but it did not have the behavior or ccb file. Can you upload again? |
||||
|
ups sorry here is the link http://brainxcode.cl/exchange/in... |
||||
|
Still can't use the download link. I am using chrome. Does this change anything? |
||||
|
@forloops I looked through my saved example scripts and found this code. Just paste the code in a text file, and save it as behavior_OnCollision.js in your CC extensions folder. Hope this helped.
|
|