- Home /
death by spikes
hey guys, i searched a lot to find an answer but unfortunately haven't found anything useful. i have a character with puputemaster ragdoll applied to it. let's suppose i have spike trap in the scene, and when i collide with the spike, i want some part of the spike to go throw my character's body and some blood splash come out from the postion of the injery. some kind of death like in the happy wheels game or in guts and glory. something like this. sorry for the unpleasant image :D
Answer by AaronBacon · Oct 22, 2017 at 03:14 PM
A Few things that may be relevant to do this:
OnTriggerEnter : can be used to detect when the player collides with the Spikes
transform : Used to move the object using Vector3 Eg:
transform.position = new Vector3(transform.position.x ,transform.position.y + upAmount, transform.position.z);
This would Move the Object Up by whatever force "upAmount" is.
Answer by unity_0CD5F8B740B250486F2F · Mar 18 at 04:37 AM
transform.position = new Vector3(transform.position.x ,transform.position.y + upAmount, transform.position.z);
Answer by h00man · Oct 23, 2017 at 07:45 AM
thanks for answer isn't there any video tutorial about player death by sticking to spikes or spears that i can watch?
Your answer
Follow this Question
Related Questions
Simultaneous Hits 1 Answer
Fall Death 1 Answer
Player Health and Death 1 Answer
kill counter 1 Answer
What's the best workaround for disabled colliders not firing OnTriggerExit events? 2 Answers