≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How would I do this?
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b]kierham[/b] wrote: I have a scene node as a bullet, and I want an object (sphereMesh1) to boost in the direction the bullet is in. If not possible, the the direction the player is facing. Here is the code: [code]var sphere1 = ccbGetSceneNodeFromName("sphereMesh1") ccbSetPhysicsVelocity(sphere1, 0, 50, 0) [/code] How would I get the parameters in ccbSetPhysicsVelocity to be the direction of the bullet (or the player if the bullet isn't a cloned object created by the Shoot action)?[/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