≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Move Node "without collision"?
Posted by:
(you are not logged in)
Enter the missing letter in: "Int?rnational"
(you are not logged in)
Text:
[quote][b]veganpete[/b] wrote: I'm trying to move my player from one room to another (in the same scene) when he walks near a door. The proximity event is being triggered correctly (the screen fades out and back in as room 1 is hidden and room 2 is unhidden), but for some reason the player is not moving - and I can see that it's colliding with the walls of the invisible room when I walk around (could be something to do with physics being turned on?). Here's what I'm trying to do (on enters proximity to door).... var p = ccbGetSceneNodeFromName("PlayerModel"); ccbSetSceneNodePositionWithoutCollision(p, 170.773453, -1.723588, -155.198059); I've also tried adding an "update geometry" before (and after) the "set position without collision" - this fixed a different problem of deleted items still colliding - but it doesn't seem to work for this problem. How can I move the scene node (with physics simulation turned on), to the newly "unhidden" room, without the node colliding with the old "hidden" room? As a workaround, I had tried to make a new scene for each room (but that introduced a different set of problems which I couldn't solve). Kinda stuck on this now. I suppose a last-resort, I could turn the physics simulation off unless someone can think of a better solution please?. Thanks :)[/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