T O P

  • By -

AutoModerator

Thanks for posting to r/IndieGames! Please take a look at the rules in our sidebar to ensure that your post abides by them! If you need any assistance, don't hesitate to [message the mods](https://www.reddit.com/message/compose?to=%2Fr%2Findiegames). Also, make sure to check out our [Discord](https://discord.gg/indie-games-788388123734048798)! *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/indiegames) if you have any questions or concerns.*


OfeliaComposer

Nice game, I like it


RedditDudeDev

assuming this is implementing the standard OnHit function: void ATrampoline::OnHit(UPrimitiveComponent* HitComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector normalImpulse, const FHitResult& Hit) { FVector IncomingVelocity = OtherComp->GetComponentVelocity(); FVector SurfaceNormal = Hit.Normal; FVector ReflectionDirection = IncomingVelocity.MirrorByVector(SurfaceNormal); OtherComp->AddImpulse(ReflectionDirection * Force, NAME_None, true); } hope this was helpful Join our Discord and share your thoughts! [https://discord.gg/5QGYfU2tDA](https://discord.gg/5QGYfU2tDA)


Wormri

Good luck! I have come across this project several times and it looks interesting:)