How would i make a bullet glance off a object from where i shoot it and hit another object?I need this for my game?
Vector math. Multiply the bullets velocity vector by the direction of the walls normal.
Or you can play with the material settings, but this might run into problems if the bullet has velocity constantly applied to it. You’d have to give the bullet an initial velocity and then let it coast.
How would you go about doing that with the material settings?An example would be nice.
With real dynamic objects?
Increase “elasticity” at the materials of all involved object.
if you have the face of collision you can use reflect() function
velocity = velocity.reflect(hitNormal)
but for many reason is not much easy to use
(first because you not know the face of collision)
I want the bullet to bounce off like a real bullet when it collides with moving robots actually?Could you give me a python example of this in a blend?
[quote=“3d solar system builder,post:6,topic:546386"”]
I want the bullet to bounce off like a real bullet when it collides with moving robots actually?Could you give me a python example of this in a blend?
[/quote]
yes,
this exploits the fact that the bullet is too fast prior to impact,and is not visible(also , seem which that high speed is not possible checking collision)
then the bullet is created directly on the surface of impact
is there any line is not needed (special effects :RocknRoll: )
I hope not too confusing
![]()
Attachments
bullez.blend (101 KB)
I want the bullet to hit the other objects depending on what side you hit the object.That does not do that?
i have make another, this make the same things but using the ray of bullet and the sensor ray
all is much simple .
honesty i had thinked that was more problematic this way … 
while the material solution in this case(too high speed) not work well because many time fail the collision .
Attachments
brickBullet.blend (68.2 KB)
i make usual mistake with post …
“I want the bullet to hit the other objects depending on what side you hit the object.That does not do that?”
the last blend make what you ask ?
the first make the same things , but maybe is a bit confusing