Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Can't remove collision after scenenode deleted

expexp
Registered User
Quote
2018-10-30 21:55:02

I have a static scene node (it has attribute collision) that must behave like a wall and it dissapears on collision with player.
So I try to make it this way:
var s = ccbGetSceneNodeFromName("cubeMesh8");
s.DoesCollision=false;
s.CollidesWithWorld=false;
ccbRemoveSceneNode( ccbGetSceneNodeFromName("cubeMesh8") );

So - node dissapears but the collision remains - I can't go thru that place where the node was.


expexp
Registered User
Quote
2018-10-31 01:34:13

I mean that this object must be impassable for other actors(and stand still not moving) but it should not fall(so it can just hang in the air) and it must dissapear when collided with player.


behroz-khan
Registered User
Quote
2018-10-31 08:15:51

Or you can use Coppercube's built-in behavior to delete a scene node.

Game and Sound > Delete a scene node


That should work!


expexp
Registered User
Quote
2018-10-31 17:31:04

No - it's the same. But If use collide when moved behaviour then it works. But it passable then.


srfstudio
Registered User
Quote
2018-11-01 00:17:08

You could use invisible cube for collision on top of a real object: when player collides with the cube, cube moves up or down, when player is not colliding the cube, cube returns to it's original position. This way the player can pass and the real object can stay the same, disappear, change or whatever you intended.


expexp
Registered User
Quote
2018-11-02 03:16:41

I have another big problem now. There is a large sphere object - it has only one behaviour(not physics engine) - collide when moved with size 50,20,50 and AffectedByGravity. So this object is not movable by the player(that is the problem) in WEBGL but in windows everything is ok
But the gravity works in webgl,,....
So CollideWhenMoved is also corresponds to the physics engine? That's very bad.. no way then


expexp
Registered User
Quote
2018-11-02 04:23:44

So I tried to do this way
🔎︎

but it moves only one direction


srfstudio
Registered User
Quote
2018-11-03 18:44:59

I'm not sure but I think that you can't move an object like that without using physics engine. You can maybe simulate movement with script so that it seems like object is using physics but, if you do it that way, you must have a script that takes into account from where the player is pushing (X,Y).


just_in_case
Moderator
Quote
2018-11-07 23:38:05

Try changong position wothout moving the sphere onto facing direction because it will move forward only, instead using move by a vector and then using the axis will sure make this move in the described direction......

Hope that helps...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

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