2
$\begingroup$

I want to know how to make an object leave marks on another in the game engine, like skidmarks as in this video. I'm not looking for a tutorial, just the logic of it. How can this be done?

$\endgroup$

1 Answer 1

1
$\begingroup$

The best way to do this (and I tested) would be to have your trigger object (tires) rigged with an Edit object actuator set to add object : Activate upon a collision with ground or a sharp turn (Make sure True level triggering is on).

Set the time to 30, and the target object to be a plane textured like a portion or you tires tread. Alpha channel turn down.

I got good effects with a rolling monkey head, so hey; why not a car?

$\endgroup$
7
  • $\begingroup$ I want to try that, it sound really neat (the only PB I can see is the potentially uncontrollable polycount increase) so ; I already got an always pulse sensor on my car object, I connected it via a AND to a Edit actuator set to add a small plane I made, but nothing happens ; What steps am I missing? $\endgroup$
    – yPhil
    Dec 5, 2014 at 11:31
  • $\begingroup$ OK So the "mark" object has to be on another, hidden layer. Now it works, only my 30 objects won't stay there, they follow the car :) $\endgroup$
    – yPhil
    Dec 5, 2014 at 11:40
  • $\begingroup$ ...Aaaand just set "time" to 0 to leave the marks on the track. Now I just have to replace my AND w/ a python module that (pretends to) manage friction (sharp turns, braking & accels) Vince, this is excellent, thank you very much! $\endgroup$
    – yPhil
    Dec 5, 2014 at 11:45
  • $\begingroup$ Problem is it kills the performance... Damned, how can I just scratch the texture's surface? $\endgroup$
    – yPhil
    Dec 6, 2014 at 1:15
  • $\begingroup$ Well, they don't need to stay there forever, you can make them disappear after some time. also at only four vertices a-piece it shouldn't be a problem. Maybe slow down the true level triggering delay value? $\endgroup$
    – ruckus
    Dec 6, 2014 at 3:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .