≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Move Object By 3D Position Issue?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b][/b] wrote: I also tested it an it works for me as well, for both physics simulation and collision only. The reason you might see that it is not working is that it moves with the collision enabled, in physics simulation, it makes the player bounce up and then it bounces the player to somewhere else which makes it look as if it is not working. The same goes with the collision simulation, it moves the character with collision, so when you change the position of the player, it might put the player just outside the dungeon room, or near the point of collision. to confirm that it is the issue of Collision detection, you can simply remove the "Collide when moved behavior" and test the app again. Your player will change the position correctly. in order to change the position of the object with the "Collide when moved" behavior attached so that it can change position without jumping or bouncing back to another position. You can use this javascript command to change the position of your object without collision. [code]var s = ccbGetSceneNodeFromName("cubeMesh1"); ccbSetSceneNodePositionWithoutCollision(s, x, y, z);[/code] simply rename the "cubeMesh1" in the above code with the name of your player node, make sure it remains in Quotes, and change the "X, Y, Z" with the position of your dungeon or with the position where you want your player to be. You can put the above code in the execute javascript action. Also, this is not my engine, I am just a user like you. @Ambiera owns the engine. hehehe*grin* Hope this solves your issue.*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