Search the Community
Showing results for tags 'collision'.
-
[SOLVED] How to set rigid body of the node for collision(node is created by noderef)
burakdogancay posted a topic in C++ Programming
I am trying to add collision process for nodes.I already created contactcallback for intersection and it works like charm when i implement it directly to editor with calling by function in c++.So it directly detect intersection and collision wit contact callback function. I would like to explain it with code; It works correctly with this way Unigine::NodePtr mObject1; Unigine::NodePtr mObject1parent; mObject1parent = Util::Search::getNodeRecursive("Objectparent", mReference->getNode()); mObject1 = Util::Search::getNodeRecursive("mObject1",mObject1parent); //I already added ri- 4 replies
-
- collision
- addcontactcallback
-
(and 2 more)
Tagged with:
-
Hello everyone, I would like to ask, is there any way to provide collision between two nodes? I added two objects as ".node"(FBX) file and tried to set collider on them.But unfortunately I couldn't check any collision is available between them.According to this collision I would like to give some effect like explosions on objects. simply, Unigine::NodePtr node1; Unigine::NodePtr node2; then I initialize node objects for them which is available in Unigine editor,mReference represent parent node(everything works and I can show them in Unigine engine(these two objects are avail
-
collision visualisation, callback, mask
lightmap posted a topic in Physics, Navigation and Path Finding
Hello Working with physics in VR, and so visualizer are not render a thing in VR(https://developer.unigine.com/forum/topic/4446-turn-on-visualizer-in-vr/?tab=comments#comment-23169)... I'd like to see where player collide with scene (because of unexpected collision response sometime) 1. looking at examples - there only Body collision callbacks, how to call back for collided surfaces? for example collision of VR controller and scene: 2. I should set controller transformation with setLinearVelocity... instead of setWorldTransform to get right collisions, right? because i- 3 replies
-
- collision
- visualisation
-
(and 1 more)
Tagged with:
-
Contact Callbacks (setWorldTransform)
chen.chen posted a topic in Physics, Navigation and Path Finding
hello. I cannot get BodyRigid's contacts callbacks ,because I set the node position (by setWorldTransform) in C++. I want to control the node position through ART Track and get contacts with other BodyRigid, how can I do? I want the BodyRigid is kinematic (controlled by transform, not by force, but can get contact callback). thank you! -
Hi, I was trying to simulate bullet(has body) collision with a custom AI class that has a PlayerActor instance. How do I detect if the bullet has hit the PlayerActor capsule shape? Currently, from the bullet's contact callback function, I am receiving a contact with a body (of AI). I presume this body is PlayerActor class's body (playerActor.getBody()). Now that I have found this body, how do I find it's PlayerActor?
- 1 reply
-
- PlayerActor
- Collision
-
(and 1 more)
Tagged with:
-
[SOLVED] Constraints on collision response
Linus posted a topic in Physics, Navigation and Path Finding
I need to put constraints on the forces that are exerted on a body at any point in time. Is there a way to get the collision data calculated by the engine, but write my own collision response (for a single body)? Are there other ways to achieve the same result? -
[SOLVED] PlayerSpectator collision detection with Objects
radeon.kuznecov posted a topic in UnigineScript
Hi,all. Someone,can help with creating collision detection node "PlayerSpectator" with objects(terrain and etc)? I'm trying make it's,but it's not working with terrain(i can see from objects): ObjectDummy baseobject=NULL; Body bodybase=NULL; ShapeSphere Sphere=NULL; baseobject=new ObjectDummy(); baseobject.setWorldPosition( spectator.getWorldPosition() ); bodybase =new BodyDummy(); bodybase.setObject(baseobject); Sphere = new ShapeSphere(bodybase,10); -
При масштабировании объектов, сильно теряется точность. Отладочный пример: 1. basic players demo из EvaluationKIT 2. Добавить пирамиду, в основании квадрат 1*1 метр и высота 1 метр. 3. Подбежать actor(ом), коллизия точная, относительно. 4. Делаем масштабирование пирамиды по x, y, z в 5 раз. 5. Коллизия стала очень неточной. Translate: Debug sample: 1. Start basic players sample from EvaluationKIT browser. 2. Add new static mesh: pyramid with square 1*1 metr and height 1 metr. 3. Run and jump on it by PlayerActor, precision is normally. 4. Scale pyramid by x, y, z in 5 t