Questions tagged [collider]

A Websocket signalling server written in the [go] language for WebRTC. For particle/object collision detection in simulations or games, please use [collision-detection] instead.

285 questions
0
votes
1 answer

How to increase the 2d collider size for animated object in Unity 3D

I have an animation object in shape of ball with different sizes. Think of it like a ball that increase in size from small to large but during the entire animation I want the size of the collider to remain constant through out the animation or…
Dashing Boy
  • 477
  • 2
  • 10
  • 21
0
votes
0 answers

Unity: Game object delete itself from hierarchy when I play animation

When I play animation which change offset polygon collider 2D the gameobject with animator destroy itself in hierarchy for no reason. When I remove collider offset the animation start working properly once again but without collider it's unusable…
0
votes
2 answers

How to calculate the length of platform/object in Unity 5?

I'm new to Unity and after watching and reading some tutorials I'm now trying to make a simple 2D platformer kind of game. In the said game both enemies and player can jump to different platforms and traverse it like the old SnowBros game. The…
Dashing Boy
  • 477
  • 2
  • 10
  • 21
0
votes
0 answers

Unity colision will not execute any logic

A simple script doing a simple thing. Yet no matter what I cannot get it script to work. using UnityEngine; using System.Collections; public class ShotScript : MonoBehaviour { public Player pScript; private Rigidbody2D shotRigid; public…
Jason Q
  • 97
  • 1
  • 1
  • 11
0
votes
1 answer

How to know in which side the collision has occured in Javascript?

Im writing a practice script where i animate a bunch of boxes and detect collision and then move them accordingly. Problem is, i found the collision but how to check in which side the collision has occurred so i can move them accordnigly. This is…
Pratish Shrestha
  • 1,712
  • 4
  • 17
  • 26
0
votes
1 answer

Unity | C# How to make customized number keypad

Im going to make a custom number keypad in unity. I'm wondering how can i make it by simple way with much short and clean code. Below code is just for explaining my idea. var str=""; //This is the result string that i have to send to host var key0…
홍의숙
  • 297
  • 4
  • 11
  • 28
0
votes
0 answers

Unity3d - How can I assign a full body mesh collider to a character with many meshes

I downloaded the free Zombies asset pack off the unity store, and have set up all the animations and everything. When I shoot it nothing happens obviously because there is no collider attached to it. The problem I face is that there are around 20…
Kyle Jensen
  • 419
  • 9
  • 27
0
votes
1 answer

How do I match the radius of a Circle Collider 2D to that of a sprites image in code

I am generating planets of various types and sizes for my levels. This dictates which sprite image will be used i.e. a water planet has a different image compared to that of a gas giant etc. Therefore some require a larger radius for the circle…
JonHerbert
  • 647
  • 1
  • 8
  • 23
0
votes
1 answer

running FROM Babylon - gravity, colliders, it's all not working

So, I'm having trouble with babylon.js. I'm trying to make a simple example where I have box colliders on my player object and the ground with physics applied for gravity and collision. I've run out of ideas as to what I could be doing wrong. Please…
0
votes
1 answer

Adding a collider that interacts only with raycasts in unity

I made a trail in my program, which I would like to be clickable, like a button. I thought about adding a collider, and hitting it with a raycast, but it forces me to exempt it from various OnCollision triggers (it's not meant to affect them at…
Raledon
  • 3
  • 2
0
votes
1 answer

AppRtc on a Custom Server

I have deployed the apprtc (https://github.com/webrtc/apprtc), webrtc sample project from Google on my own GAE account. I found that developers have to their own TURN server to support NAT traversal and cannot use Google's TURN server. Are there…
ssk
  • 9,045
  • 26
  • 96
  • 169
-1
votes
0 answers

Getting local coordinates of intersection in OnTriggerEnter (Unity)

An object with a collider moves towards another object with a collider. I want to make that when objects intersect, a new object is created at the center of the intersection of two colliders. I'm trying to create an object at the moment of…
-1
votes
1 answer

Wall colliders getting out of screen unity

Basically im developing a 2d pang game style for mobile, where you pop some balls. So i created some walls colliders, but everytime i change the resolution, the left and right walls just dont stick to the right place, or they move out of screen or…
-1
votes
2 answers

Unity 2D. Why both possible actions are triggered by pressing button?

I'm trying to make it possible to close and open door while player is colliding with door opener. But it just do both - opens and closes by pressing E key. What seems to be the problem? { bool DoorTriggered = false; bool DoorClosed =…
-1
votes
1 answer

How to determine when player (cylinder) has moved above a plane in unity 3D?

I am making a delivery game and temporarily designed my game so that the player who is a cylinder at the moment has to locate the delivery location which is a flat plane and move onto it in order to deliver the objects. I have tried adding a 2d box…
MIM
  • 5
  • 4
1 2 3
18
19