≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Cycle
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b][/b] wrote: You can try using linepicks for the Collision checking for the AI, either by checking the collision with the bounding box of the scenenode or by getting the collision point of the world and check if that point lies in the radius of the AI, if it lies then perform the hit otherwise no-hit. Regarding the For-loop, @sven has already answered your question. However, As you are dealing with AI, I would like to suggest you not use pre-created AI, instead create one with different properties and then clone them during runtime. You don't have to look them for in the scene like you are checking them in the example above with a for Loop. As, it might affect the performance. you can for example clone and spawn a new enemy after the previous one is dead, or can clone and spawn it on proximity of player with an object. It will also decrease the load time of your project if you are doing it for the webGL platform. *holy*[/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