≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
behavior script header
Posted by:
(you are not logged in)
Enter the missing letter in: "Int?rnational"
(you are not logged in)
Text:
[quote][b]neo96732[/b] wrote: hello its been so long since i tried to make a script can anyone exsplain the header for me i been trying out a script but it will not load this is the script // Ricochet script var bounceCount = 0; function ricochet(bullet, collidedNode) { var surfaceNormal = bullet.getAttribute("collisionNormal"); var reflect = vec3.reflect(bullet.getAttribute("velocity"), surfaceNormal); bullet.setAttribute("velocity", reflect); bounceCount++; if (bounceCount >= 5) { bullet.remove(); } } // Attach the ricochet function to the bullet node bullet.setAttribute("onCollision", ricochet);[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact